ISwapFlashLoan
function addLiquidity(uint256[] amounts, uint256 minToMint, uint256 deadline) external nonpayable returns (uint256)
Name | Type | Description |
---|---|---|
amounts | uint256[] | undefined |
minToMint | uint256 | undefined |
deadline | uint256 | undefined |
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
function calculateRemoveLiquidity(uint256 amount) external view returns (uint256[])
Name | Type | Description |
---|---|---|
amount | uint256 | undefined |
Name | Type | Description |
---|---|---|
_0 | uint256[] | undefined |
function calculateRemoveLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex) external view returns (uint256 availableTokenAmount)
Name | Type | Description |
---|---|---|
tokenAmount | uint256 | undefined |
tokenIndex | uint8 | undefined |
Name | Type | Description |
---|---|---|
availableTokenAmount | uint256 | undefined |
function calculateSwap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx) external view returns (uint256)
Name | Type | Description |
---|---|---|
tokenIndexFrom | uint8 | undefined |
tokenIndexTo | uint8 | undefined |
dx | uint256 | undefined |
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
function calculateTokenAmount(uint256[] amounts, bool deposit) external view returns (uint256)
Name | Type | Description |
---|---|---|
amounts | uint256[] | undefined |
deposit | bool | undefined |
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
function flashLoan(address receiver, contract IERC20 token, uint256 amount, bytes params) external nonpayable
Name | Type | Description |
---|---|---|
receiver | address | undefined |
token | contract IERC20 | undefined |
amount | uint256 | undefined |
params | bytes | undefined |
function getA() external view returns (uint256)
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
function getToken(uint8 index) external view returns (contract IERC20)
Name | Type | Description |
---|---|---|
index | uint8 | undefined |
Name | Type | Description |
---|---|---|
_0 | contract IERC20 | undefined |
function getTokenBalance(uint8 index) external view returns (uint256)
Name | Type | Description |
---|---|---|
index | uint8 | undefined |
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
function getTokenIndex(address tokenAddress) external view returns (uint8)
Name | Type | Description |
---|---|---|
tokenAddress | address | undefined |
Name | Type | Description |
---|---|---|
_0 | uint8 | undefined |
function getVirtualPrice() external view returns (uint256)
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
function initialize(contract IERC20[] pooledTokens, uint8[] decimals, string lpTokenName, string lpTokenSymbol, uint256 a, uint256 fee, uint256 adminFee, address lpTokenTargetAddress) external nonpayable
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 |
function removeLiquidity(uint256 amount, uint256[] minAmounts, uint256 deadline) external nonpayable returns (uint256[])
Name | Type | Description |
---|---|---|
amount | uint256 | undefined |
minAmounts | uint256[] | undefined |
deadline | uint256 | undefined |
Name | Type | Description |
---|---|---|
_0 | uint256[] | undefined |
function removeLiquidityImbalance(uint256[] amounts, uint256 maxBurnAmount, uint256 deadline) external nonpayable returns (uint256)
Name | Type | Description |
---|---|---|
amounts | uint256[] | undefined |
maxBurnAmount | uint256 | undefined |
deadline | uint256 | undefined |
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
function removeLiquidityOneToken(uint256 tokenAmount, uint8 tokenIndex, uint256 minAmount, uint256 deadline) external nonpayable returns (uint256)
Name | Type | Description |
---|---|---|
tokenAmount | uint256 | undefined |
tokenIndex | uint8 | undefined |
minAmount | uint256 | undefined |
deadline | uint256 | undefined |
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
function swap(uint8 tokenIndexFrom, uint8 tokenIndexTo, uint256 dx, uint256 minDy, uint256 deadline) external nonpayable returns (uint256)
Name | Type | Description |
---|---|---|
tokenIndexFrom | uint8 | undefined |
tokenIndexTo | uint8 | undefined |
dx | uint256 | undefined |
minDy | uint256 | undefined |
deadline | uint256 | undefined |
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
Last modified 11mo ago