Expand description
Module containing a contract’s types and functions.
interface ICurveI128_2 {
function get_dy(int128, int128, uint256) external view returns (uint256);
function calc_withdraw_one_coin(uint256, int128) external view returns (uint256);
function calc_token_amount(uint256[2], bool) external view returns (uint256);
function exchange(int128, int128, uint256, uint256) external;
function remove_liquidity_one_coin(uint256, int128, uint256) external;
function add_liquidity(uint256[2], uint256) external;
}
Modules§
- Contains dynamic ABI definitions for this contract.
Structs§
- A
ICurveI128_2
instance. - Function with signature
add_liquidity(uint256[2],uint256)
and selector0x0b4c7e4d
. - Container type for the return parameters of the
add_liquidity(uint256[2],uint256)
function. - Function with signature
calc_token_amount(uint256[2],bool)
and selector0xed8e84f3
. - Container type for the return parameters of the
calc_token_amount(uint256[2],bool)
function. - Function with signature
calc_withdraw_one_coin(uint256,int128)
and selector0xcc2b27d7
. - Container type for the return parameters of the
calc_withdraw_one_coin(uint256,int128)
function. - Function with signature
exchange(int128,int128,uint256,uint256)
and selector0x3df02124
. - Container type for the return parameters of the
exchange(int128,int128,uint256,uint256)
function. - Function with signature
get_dy(int128,int128,uint256)
and selector0x5e0d443f
. - Container type for the return parameters of the
get_dy(int128,int128,uint256)
function. - Function with signature
remove_liquidity_one_coin(uint256,int128,uint256)
and selector0x1a4d01d2
. - Container type for the return parameters of the
remove_liquidity_one_coin(uint256,int128,uint256)
function.
Enums§
- Container for all the
ICurveI128_2
function calls.
Functions§
- Creates a new wrapper around an on-chain
ICurveI128_2
contract instance.