ICurveTwoAssetPool

Git Source

Functions

add_liquidity

function add_liquidity(
    uint256[2] calldata amounts,
    uint256 minMintAmount,
    bool useEth,
    address receiver
)
    external
    returns (uint256);

add_liquidity

function add_liquidity(uint256[2] calldata amounts, uint256 minMintAmount) external returns (uint256);

get_dy

function get_dy(uint256 i, uint256 j, uint256 dx) external view returns (uint256 dy);

exchange

function exchange(uint256 i, uint256 j, uint256 dx, uint256 min_dy) external payable returns (uint256 dy);

exchange

function exchange(
    uint256 i,
    uint256 j,
    uint256 dx,
    uint256 min_dy,
    bool useEth
)
    external
    payable
    returns (uint256 dy);

coins

function coins(uint256 arg0) external view returns (address);

price_oracle

function price_oracle() external view returns (uint256);