Skip to content

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 {
  struct Structs.SwapPath path;
  struct Structs.SwapData data;
}