ISeawaterExecutorSwapB

Git Source

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

NameTypeDescription
fromaddressthe input token
toaddressthe output token
amountuint256the amount of the input token to use
minOutuint256the minimum valid amount of the output token, reverts if not reached

Returns

NameTypeDescription
<none>uint256(amount in, amount out)
<none>uint256