IndexPool
configure
initialize
tokenProvider
must have approved the pool to transfer the corresponding balances
of tokens
.setMaxPoolTokens
setSwapFee
reweighTokens
reindexTokens
setMinimumBalance
joinPool
joinswapExternAmountIn
tokenAmountIn
of tokenIn
to mint at least minPoolAmountOut
pool tokens. The pool implicitly swaps (1- weightTokenIn) * tokenAmountIn
to the other underlying tokens. Thus a swap fee is charged against the input tokens.joinswapPoolAmountOut
maxAmountIn
of tokenIn
to mint exactly poolAmountOut
. The pool implicitly swaps (1- weightTokenIn) * tokenAmountIn
to the other underlying tokens. Thus a swap fee is charged against the input tokens.exitPool
poolAmountIn
pool tokens in exchange for the amounts of each underlying token's balance proportional to the ratio of tokens burned to total pool supply. The amount of each token transferred to the caller must be greater than or equal to the associated minimum output amount from the minAmountsOut
array.exitswapPoolAmountIn
poolAmountIn
pool tokens in exchange for at least minAmountOut
of tokenOut
. Returns the number of tokens sent to the caller. The pool implicitly burns the tokens for all underlying tokens and swaps them to the desired output token. A swap fee is charged against the output tokens.exitswapExternAmountOut
maxPoolAmountIn
for exactly tokenAmountOut
of tokenOut
. Returns the number of pool tokens burned. The pool implicitly burns the tokens for all underlying tokens and swaps them to the desired output token. A swap fee is charged against the output tokens.gulp
flashBorrow
amount
of token
to recipient
. amount
must be repaid with swapFee
interest by the end of the transaction.swapExactAmountIn
tokenOut
is uninitialized.swapExactAmountOut
maxAmountIn
of tokenIn
for exactly tokenAmountOut
of tokenOut
. Returns the actual input amount and the new spot price after the swap, which can not exceed maxPrice
.isPublicSwap
getSwapFee
getController
getMaxPoolTokens
isBound
getNumTokens
getCurrentTokens
getCurrentDesiredTokens
getDenormalizedWeight
getTokenRecord
extrapolatePoolValueFromToken
getTotalDenormalizedWeight
getBalance
getMinimumBalance
getUsedBalance
getSpotPrice
tokenOut
in terms of tokenIn
._pullPoolShare
_pushPoolShare
_mintPoolShare
_burnPoolShare
_pullUnderlying
_pushUnderlying
_bind
minimumBalance
should represent an amount of the token which is worth the portion of the current pool value represented by the minimum weight._unbind
_setDesiredDenorm
_increaseDenorm
_decreaseDenorm
_updateInputToken
_getInputToken
_getOutputToken