TradeRoute: {
    subRoutes: SubTradeRoute[];
    totalAmountIn: BN;
    totalAmountOut: BN;
}

A trade route that is ready to execute. A trade can be broken into multiple sub-trades for potentially better trades.

Type declaration

Param: subRoutes

The sub-routes that make up the trade route. The sum of all splitPercent should equal 100.

Param: totalAmountIn

The total amount of token being traded in for this trade.

Param: totalAmountOut

The total amount of token being traded out for this trade.

Generated using TypeDoc