SyncQuoter

Git Source

Functions

_quoteSyncSwapExactIn

Quotes amountOut for SyncSwap swaps

Note: calldata-offset-table:

Offset Length (bytes) Description
0 20 pool
20 1 padding
function _quoteSyncSwapExactIn(
    address tokenIn,
    uint256 amountIn,
    uint256 currentOffset
)
    internal
    view
    returns (uint256 amountOut, uint256);

Parameters

Name Type Description
tokenIn address Input token address
amountIn uint256 Input amount
currentOffset uint256 Current position in the calldata

Returns

Name Type Description
amountOut uint256 Output amount
<none> uint256 Updated calldata offset after processing

results matching ""

    No results matching ""