expectedTradeInput()
function expectedTradeInput(Token token, uint128 targetAmount) external view returns (uint128 sourceAmount);Function Arguments
Name
Type
Description
Example
expectedTradeInput(
0x1f573d6fb3f13d689ff844b4ce37794d79a7ff1c, //token address
4027872880331900000000 //target amount indicated in wei
)
returns (
1000000000000000000 //the required amount of source tokens indicated in wei
)Last updated