RouterUtil

Verified contract

Active on Ethereum with 0 txns
Deployed by via 0x895894de at 20191515
Slot Value
0x0000000000000000000000000000000000000000000000000000000000000000 0x0000000000000000000000000000000000000000000000000000000000000000
0x0000000000000000000000000000000000000000000000000000000000000001 0x0000000000000000000000000000000000000000000000000000000000000000
0x0000000000000000000000000000000000000000000000000000000000000002 0x0000000000000000000000000000000000000000000000000000000000000000
0x0000000000000000000000000000000000000000000000000000000000000003 0x0000000000000000000000000000000000000000000000000000000000000000
0x0000000000000000000000000000000000000000000000000000000000000004 0x0000000000000000000000000000000000000000000000000000000000000000

No balances found for "RouterUtil"

No transactions found for "RouterUtil"


Functions
Getter at block 21124388

This contract contains no getter function objects.

Read-only
convertIBTToYTSpot(uint256 _inputIBTAmountaddress _curvePoolview returns (uint256)
getPTUnderlyingUnit(address _ptview returns (uint256)
getUnit(address _tokenview returns (uint256)
previewAddLiquidity(address _curvePooluint256[2] _amountsview returns (uint256 minMintAmount)
previewAddLiquidityWithAsset(address _curvePooluint256 _assetsview returns (uint256 minMintAmount)
previewAddLiquidityWithIBT(address _curvePooluint256 _ibtsview returns (uint256 minMintAmount)
previewFlashSwapExactIBTToYT(address _curvePooluint256 _inputIBTAmountview returns (uint256 ytAmountuint256 borrowedIBTAmount)
previewFlashSwapExactYTToIBT(address _curvePooluint256 inputYTAmountview returns (uint256uint256)
previewFlashSwapIBTToExactYT(address _curvePooluint256 _outputYTAmountview returns (uint256 inputIBTAmountuint256 borrowedIBTAmount)
previewRemoveLiquidity(address _curvePooluint256 _lpAmountview returns (uint256[2] minAmounts)
previewRemoveLiquidityForAsset(address _curvePooluint256 _lpAmountview returns (uint256 assets)
previewRemoveLiquidityForIBT(address _curvePooluint256 _lpAmountview returns (uint256 ibts)
previewRemoveLiquidityOneCoin(address _curvePooluint256 _lpAmountuint256 _iview returns (uint256 minAmount)
spotExchangeRate(address _curvePooluint256 _iuint256 _jview returns (uint256)
State-modifying

This contract contains no state-modifying function objects.

Events

This contract contains no event objects.

Constructor

This contract contains no constructor objects.

Fallback and receive

This contract contains no fallback and receive objects.

Errors
InvalidTokenIndex(uint256 iuint256 j
MathOverflowedMulDiv(
PoolLiquidityError(
SafeCastOverflowedIntToUint(int256 value
SafeCastOverflowedUintToInt(uint256 value
UnsufficientAmountForFlashFee(