MockCurveMetapool
Functions
constructor
function constructor(
address _3pool,
address _fei
) public
Parameters
Name | Type | Description |
---|---|---|
_3pool | address | |
_fei | address |
set_slippage
function set_slippage(
uint256 _slippage
) public
Parameters
Name | Type | Description |
---|---|---|
_slippage | uint256 |
add_liquidity
function add_liquidity(
uint256[2] amounts,
uint256 min_mint_amount
) public
Parameters
Name | Type | Description |
---|---|---|
amounts | uint256[2] | |
min_mint_amount | uint256 |
balances
function balances(
uint256 i
) public returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
i | uint256 |
remove_liquidity
function remove_liquidity(
uint256 _amount,
uint256[2] min_amounts
) public
Parameters
Name | Type | Description |
---|---|---|
_amount | uint256 | |
min_amounts | uint256[2] |
remove_liquidity_one_coin
function remove_liquidity_one_coin(
uint256 _amount,
int128 i,
uint256 min_amount
) public
Parameters
Name | Type | Description |
---|---|---|
_amount | uint256 | |
i | int128 | |
min_amount | uint256 |
get_virtual_price
function get_virtual_price() public returns (uint256)
calc_withdraw_one_coin
function calc_withdraw_one_coin(
uint256 _token_amount,
int128 i
) public returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
_token_amount | uint256 | |
i | int128 |