Skip to main content

MockCurve3pool

Functions

constructor

function constructor(
address _dai,
address _usdc,
address _usdt
) public

Parameters

NameTypeDescription
_daiaddress
_usdcaddress
_usdtaddress

set_slippage

function set_slippage(
uint256 _slippage
) public

Parameters

NameTypeDescription
_slippageuint256

add_liquidity

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

Parameters

NameTypeDescription
amountsuint256[3]
min_mint_amountuint256

balances

function balances(
uint256 i
) public returns (uint256)

Parameters

NameTypeDescription
iuint256

remove_liquidity

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

Parameters

NameTypeDescription
_amountuint256
min_amountsuint256[3]

remove_liquidity_one_coin

function remove_liquidity_one_coin(
uint256 _amount,
int128 i,
uint256 min_amount
) public

Parameters

NameTypeDescription
_amountuint256
iint128
min_amountuint256

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

NameTypeDescription
_token_amountuint256
iint128