Skip to main content

ICurveStableSwap3

Functions

init

function __init__(
address _owner,
address[3] _coins,
address _pool_token,
uint256 _A,
uint256 _fee,
uint256 _admin_fee
) external

Parameters

NameTypeDescription
_owneraddress
_coinsaddress[3]
_pool_tokenaddress
_Auint256
_feeuint256
_admin_feeuint256

get_balances

function get_balances() external returns (uint256[3])

calc_token_amount

function calc_token_amount(
uint256[3] amounts,
bool deposit
) external returns (uint256)

Parameters

NameTypeDescription
amountsuint256[3]
depositbool

add_liquidity

function add_liquidity(
uint256[3] amounts,
uint256 min_mint_amount
) external

Parameters

NameTypeDescription
amountsuint256[3]
min_mint_amountuint256

remove_liquidity

function remove_liquidity(
uint256 _amount,
uint256[3] min_amounts
) external

Parameters

NameTypeDescription
_amountuint256
min_amountsuint256[3]

remove_liquidity_imbalance

function remove_liquidity_imbalance(
uint256[3] amounts,
uint256 max_burn_amount
) external

Parameters

NameTypeDescription
amountsuint256[3]
max_burn_amountuint256