ISeawaterExecutorSwapB
Functions
swap2ExactInED91BB1D
performs a two stage swap across two pools
function swap2ExactInED91BB1D(address from, address to, uint256 amount, uint256 minOut)
external
returns (uint256, uint256);
Parameters
Name | Type | Description |
---|---|---|
from | address | the input token |
to | address | the output token |
amount | uint256 | the amount of the input token to use |
minOut | uint256 | the minimum valid amount of the output token, reverts if not reached |
Returns
Name | Type | Description |
---|---|---|
<none> | uint256 | (amount in, amount out) |
<none> | uint256 |