ISwapFlashLoan
Methods
addLiquidity
Parameters
Name | Type | Description |
---|---|---|
amounts | uint256[] | undefined |
minToMint | uint256 | undefined |
deadline | uint256 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
calculateRemoveLiquidity
Parameters
Name | Type | Description |
---|---|---|
amount | uint256 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256[] | undefined |
calculateRemoveLiquidityOneToken
Parameters
Name | Type | Description |
---|---|---|
tokenAmount | uint256 | undefined |
tokenIndex | uint8 | undefined |
Returns
Name | Type | Description |
---|---|---|
availableTokenAmount | uint256 | undefined |
calculateSwap
Parameters
Name | Type | Description |
---|---|---|
tokenIndexFrom | uint8 | undefined |
tokenIndexTo | uint8 | undefined |
dx | uint256 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
calculateTokenAmount
Parameters
Name | Type | Description |
---|---|---|
amounts | uint256[] | undefined |
deposit | bool | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
flashLoan
Parameters
Name | Type | Description |
---|---|---|
receiver | address | undefined |
token | contract IERC20 | undefined |
amount | uint256 | undefined |
params | bytes | undefined |
getA
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
getToken
Parameters
Name | Type | Description |
---|---|---|
index | uint8 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | contract IERC20 | undefined |
getTokenBalance
Parameters
Name | Type | Description |
---|---|---|
index | uint8 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
getTokenIndex
Parameters
Name | Type | Description |
---|---|---|
tokenAddress | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint8 | undefined |
getVirtualPrice
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
initialize
Parameters
Name | Type | Description |
---|---|---|
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 |
removeLiquidity
Parameters
Name | Type | Description |
---|---|---|
amount | uint256 | undefined |
minAmounts | uint256[] | undefined |
deadline | uint256 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256[] | undefined |
removeLiquidityImbalance
Parameters
Name | Type | Description |
---|---|---|
amounts | uint256[] | undefined |
maxBurnAmount | uint256 | undefined |
deadline | uint256 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
removeLiquidityOneToken
Parameters
Name | Type | Description |
---|---|---|
tokenAmount | uint256 | undefined |
tokenIndex | uint8 | undefined |
minAmount | uint256 | undefined |
deadline | uint256 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
swap
Parameters
Name | Type | Description |
---|---|---|
tokenIndexFrom | uint8 | undefined |
tokenIndexTo | uint8 | undefined |
dx | uint256 | undefined |
minDy | uint256 | undefined |
deadline | uint256 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
Last updated