Trade: {
    amountSpecifiedIsInput: boolean;
    tokenIn: Address;
    tokenOut: Address;
    tradeAmount: BN;
}

A Trade type that represents a trade between two tokens

Type declaration

  • amountSpecifiedIsInput: boolean
  • tokenIn: Address
  • tokenOut: Address
  • tradeAmount: BN

Param: tokenIn

The token that is being traded in

Param: tokenOut

The token that is being traded out

Param: tradeAmount

The amount of token being traded in or out

Param: amountSpecifiedIsInput

Whether the trade amount is the amount being traded in or out

Generated using TypeDoc