SwapData

Git Source

struct SwapData {
    bytes swapPayload;
    uint256 amountInSwap;
    uint256 amountOutSwap;
    address swapRouter;
    bool zeroForOne;
}

Variables

NameTypeDescription
swapPayloadbytesPayload to use for a swap in an external venue. Transaction must be atomic
amountInSwapuint256Amount of token to be swapped
amountOutSwapuint256Minimum amount of the other token to be received from the swap
swapRouteraddressAddress of the router to be used for the swap
zeroForOneboolBoolean to determine the direction of the swap. If true swaps token0 for token1 and viceversa