Build
Architecture
contracts
contracts
evm
tools
ZetaTokenConsumerPancakeV3.strategy.sol
Interface.iswaprouterpancake

Git Source (opens in a new tab)

Inherits: IUniswapV3SwapCallback

exactInputSingle

Swaps amountIn of one token for as much as possible of another token

function exactInputSingle(ExactInputSingleParams calldata params) external payable returns (uint256 amountOut);

Parameters

NameTypeDescription
paramsExactInputSingleParamsThe parameters necessary for the swap, encoded as ExactInputSingleParams in calldata

Returns

NameTypeDescription
amountOutuint256The amount of the received token

exactInput

Swaps amountIn of one token for as much as possible of another along the specified path

function exactInput(ExactInputParams calldata params) external payable returns (uint256 amountOut);

Parameters

NameTypeDescription
paramsExactInputParamsThe parameters necessary for the multi-hop swap, encoded as ExactInputParams in calldata

Returns

NameTypeDescription
amountOutuint256The amount of the received token

ExactInputSingleParams

struct ExactInputSingleParams {
    address tokenIn;
    address tokenOut;
    uint24 fee;
    address recipient;
    uint256 amountIn;
    uint256 amountOutMinimum;
    uint160 sqrtPriceLimitX96;
}

ExactInputParams

struct ExactInputParams {
    bytes path;
    address recipient;
    uint256 amountIn;
    uint256 amountOutMinimum;
}