Skip to main content

MockStEthStableSwap

Functions

constructor

function constructor(
address _token1
) public

Parameters

NameTypeDescription
_token1address

setSlippage

function setSlippage(
uint256 _slippage,
bool _anti
) public

Parameters

NameTypeDescription
_slippageuint256
_antibool

coins

function coins(
uint256 i
) public returns (address)

Parameters

NameTypeDescription
iuint256

exchange

function exchange(
int128 i,
int128 j,
uint256 input,
uint256 min_out
) public returns (uint256 output)

Parameters

NameTypeDescription
iint128
jint128
inputuint256
min_outuint256

get_dy

function get_dy(
int128 i,
int128 j,
uint256 input
) public returns (uint256 output)

Parameters

NameTypeDescription
iint128
jint128
inputuint256

receive

function receive() external