ISwap
Functions:
getA()
getAllowlist()
getToken(uint8 index)
getTokenIndex(address tokenAddress)
getTokenBalance(uint8 index)
getVirtualPrice()
isGuarded()
calculateSwap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx)
calculateTokenAmount(uint256[] amounts, bool deposit)
calculateRemoveLiquidity(uint256 amount)
calculateRemoveLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex)
swap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline)
addLiquidity(uint256[] amounts, uint256 minToMint, uint256 deadline, bytes32[] merkleProof)
removeLiquidity(uint256 amount, uint256[] minAmounts, uint256 deadline)
removeLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex, uint256 minAmount, uint256 deadline)
removeLiquidityImbalance(uint256[] amounts, uint256 maxBurnAmount, uint256 deadline)
updateUserWithdrawFee(address recipient, uint256 transferAmount)
Function getA() → uint256
getA() → uint256
No description
Function getAllowlist() → contract IAllowlist
getAllowlist() → contract IAllowlist
No description
Function getToken(uint8 index) → contract IERC20
getToken(uint8 index) → contract IERC20
No description
Function getTokenIndex(address tokenAddress) → uint8
getTokenIndex(address tokenAddress) → uint8
No description
Function getTokenBalance(uint8 index) → uint256
getTokenBalance(uint8 index) → uint256
No description
Function getVirtualPrice() → uint256
getVirtualPrice() → uint256
No description
Function isGuarded() → bool
isGuarded() → bool
No description
Function calculateSwap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx) → uint256
calculateSwap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx) → uint256
No description
Function calculateTokenAmount(uint256[] amounts, bool deposit) → uint256
calculateTokenAmount(uint256[] amounts, bool deposit) → uint256
No description
Function calculateRemoveLiquidity(uint256 amount) → uint256[]
calculateRemoveLiquidity(uint256 amount) → uint256[]
No description
Function calculateRemoveLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex) → uint256 availableTokenAmount
calculateRemoveLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex) → uint256 availableTokenAmount
No description
Function swap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline) → uint256
swap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline) → uint256
No description
Function addLiquidity(uint256[] amounts, uint256 minToMint, uint256 deadline, bytes32[] merkleProof) → uint256
addLiquidity(uint256[] amounts, uint256 minToMint, uint256 deadline, bytes32[] merkleProof) → uint256
No description
Function removeLiquidity(uint256 amount, uint256[] minAmounts, uint256 deadline) → uint256[]
removeLiquidity(uint256 amount, uint256[] minAmounts, uint256 deadline) → uint256[]
No description
Function removeLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex, uint256 minAmount, uint256 deadline) → uint256
removeLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex, uint256 minAmount, uint256 deadline) → uint256
No description
Function removeLiquidityImbalance(uint256[] amounts, uint256 maxBurnAmount, uint256 deadline) → uint256
removeLiquidityImbalance(uint256[] amounts, uint256 maxBurnAmount, uint256 deadline) → uint256
No description
Function updateUserWithdrawFee(address recipient, uint256 transferAmount)
updateUserWithdrawFee(address recipient, uint256 transferAmount)
No description
Last updated