ISwap

Functions:

Function getA() → uint256

No description

Function getAllowlist() → contract IAllowlist

No description

Function getToken(uint8 index) → contract IERC20

No description

Function getTokenIndex(address tokenAddress) → uint8

No description

Function getTokenBalance(uint8 index) → uint256

No description

Function getVirtualPrice() → uint256

No description

Function isGuarded() → bool

No description

Function calculateSwap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx) → uint256

No description

Function calculateTokenAmount(uint256[] amounts, bool deposit) → uint256

No description

Function calculateRemoveLiquidity(uint256 amount) → uint256[]

No description

Function calculateRemoveLiquidityOneToken(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, address lpTokenTargetAddress)

No description

Function swap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline) → uint256

No description

Function addLiquidity(uint256[] amounts, uint256 minToMint, uint256 deadline) → uint256

No description

Function removeLiquidity(uint256 amount, uint256[] minAmounts, uint256 deadline) → uint256[]

No description

Function removeLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex, uint256 minAmount, uint256 deadline) → uint256

No description

Function removeLiquidityImbalance(uint256[] amounts, uint256 maxBurnAmount, uint256 deadline) → uint256

No description

Last updated