Skip to content

Structs ​

Git Source

Structs ​

SwapPath ​

solidity
struct SwapPath {
    address protocol;
    address tokenIn;
    address tokenOut;
}

SwapData ​

solidity
struct SwapData {
    uint256 inAmt;
    uint256 outAmt;
    bool withAbsorb;
    uint256 ratio;
}

Swap ​

solidity
struct Swap {
    SwapPath path;
    SwapData data;
}