aftermath-ts-sdk - v3.3.3
    Preparing search index...

    Type Alias RouterTradeRoute

    RouterTradeRoute: RouterTradeInfo & {
        paths: RouterTradePath[];
        portion: IFixed;
    }

    Represents a sub-route of a complete trade, describing the portion and the paths used. Each sub-route may involve one or more specific pools.

    Type Declaration

    • paths: RouterTradePath[]

      The sequential swap paths used by this sub-route. A path's output feeds the next path's input.

    • portion: IFixed

      The fraction of the complete trade allocated to this sub-route, encoded as an IFixed value. 1_000_000_000_000_000_000n represents the whole trade.