ISeawaterExecutorQuote

Git Source

Functions

quote72E2ADE7

reverts with the expected amount of fUSDC or pool token for a swap with the given parameters

always revert with Error(string(amountOut))

function quote72E2ADE7(address pool, bool zeroForOne, int256 amount, uint256 priceLimit) external;

Parameters

NameTypeDescription
pooladdressthe pool to swap on
zeroForOnebooltrue if swapping token->fluid token
amountint256the amount of token to swap, positive if exactIn, negative if exactOut
priceLimituint256the price limit for swaps, encoded as a sqrtX96 price

quote2CD06B86E

reverts with the expected amount of tokenOut for a 2-token swap with the given parameters

always revert with Error(string(amountOut))

function quote2CD06B86E(address from, address to, uint256 amount, uint256 minOut) external;

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