IMetaSwap
Methods
addLiquidity
Parameters
amounts
uint256[]
undefined
minToMint
uint256
undefined
deadline
uint256
undefined
Returns
_0
uint256
undefined
calculateRemoveLiquidity
Parameters
amount
uint256
undefined
Returns
_0
uint256[]
undefined
calculateRemoveLiquidityOneToken
Parameters
tokenAmount
uint256
undefined
tokenIndex
uint8
undefined
Returns
availableTokenAmount
uint256
undefined
calculateSwap
Parameters
tokenIndexFrom
uint8
undefined
tokenIndexTo
uint8
undefined
dx
uint256
undefined
Returns
_0
uint256
undefined
calculateSwapUnderlying
Parameters
tokenIndexFrom
uint8
undefined
tokenIndexTo
uint8
undefined
dx
uint256
undefined
Returns
_0
uint256
undefined
calculateTokenAmount
Parameters
amounts
uint256[]
undefined
deposit
bool
undefined
Returns
_0
uint256
undefined
getA
Returns
_0
uint256
undefined
getToken
Parameters
index
uint8
undefined
Returns
_0
contract IERC20
undefined
getTokenBalance
Parameters
index
uint8
undefined
Returns
_0
uint256
undefined
getTokenIndex
Parameters
tokenAddress
address
undefined
Returns
_0
uint8
undefined
getVirtualPrice
Returns
_0
uint256
undefined
initializeMetaSwap
Parameters
pooledTokens
contract IERC20[]
undefined
decimals
uint8[]
undefined
lpTokenName
string
undefined
lpTokenSymbol
string
undefined
a
uint256
undefined
fee
uint256
undefined
adminFee
uint256
undefined
lpTokenTargetAddress
address
undefined
baseSwap
address
undefined
isGuarded
Returns
_0
bool
undefined
removeLiquidity
Parameters
amount
uint256
undefined
minAmounts
uint256[]
undefined
deadline
uint256
undefined
Returns
_0
uint256[]
undefined
removeLiquidityImbalance
Parameters
amounts
uint256[]
undefined
maxBurnAmount
uint256
undefined
deadline
uint256
undefined
Returns
_0
uint256
undefined
removeLiquidityOneToken
Parameters
tokenAmount
uint256
undefined
tokenIndex
uint8
undefined
minAmount
uint256
undefined
deadline
uint256
undefined
Returns
_0
uint256
undefined
swap
Parameters
tokenIndexFrom
uint8
undefined
tokenIndexTo
uint8
undefined
dx
uint256
undefined
minDy
uint256
undefined
deadline
uint256
undefined
Returns
_0
uint256
undefined
swapStorage
Returns
initialA
uint256
undefined
futureA
uint256
undefined
initialATime
uint256
undefined
futureATime
uint256
undefined
swapFee
uint256
undefined
adminFee
uint256
undefined
lpToken
address
undefined
swapUnderlying
Parameters
tokenIndexFrom
uint8
undefined
tokenIndexTo
uint8
undefined
dx
uint256
undefined
minDy
uint256
undefined
deadline
uint256
undefined
Returns
_0
uint256
undefined
Last updated