ISwapV1
Functions:
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(address account, uint256[] amounts, bool deposit) → uint256
calculateTokenAmount(address account, uint256[] amounts, bool deposit) → uint256
No description
Function calculateRemoveLiquidity(address account, uint256 amount) → uint256[]
calculateRemoveLiquidity(address account, uint256 amount) → uint256[]
No description
Function calculateRemoveLiquidityOneToken(address account, uint256 tokenAmount, uint8 tokenIndex) → uint256 availableTokenAmount
calculateRemoveLiquidityOneToken(address account, uint256 tokenAmount, uint8 tokenIndex) → uint256 availableTokenAmount
No description
Function initialize(contract IERC20[] pooledTokens, uint8[] decimals, string lpTokenName, string lpTokenSymbol, uint256 a, uint256 fee, uint256 adminFee, uint256 withdrawFee, address lpTokenTargetAddress)
initialize(contract IERC20[] pooledTokens, uint8[] decimals, string lpTokenName, string lpTokenSymbol, uint256 a, uint256 fee, uint256 adminFee, uint256 withdrawFee, address lpTokenTargetAddress)
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) → uint256
addLiquidity(uint256[] amounts, uint256 minToMint, uint256 deadline) → 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