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

    Type Alias RouterCompleteTradeRoute

    RouterCompleteTradeRoute: RouterTradeInfo & {
        externalFee?: ExternalFee;
        netTradeFeePercentage: Percentage;
        referrer?: SuiAddress;
        routes: RouterTradeRoute[];
        slippage?: Slippage;
    }

    Represents a complete trade route object. Includes all relevant information for executing a trade from coinIn to coinOut through one or more protocols.

    Type Declaration

    • OptionalexternalFee?: ExternalFee

      An optional third-party fee. feePercentage is a decimal fraction of the trade, and the recipient receives that fee when the route executes.

    • netTradeFeePercentage: Percentage

      The aggregate DEX trade fee as a decimal fraction. 0.01 represents 1%.

    • Optionalreferrer?: SuiAddress

      The optional referrer recorded for the route. The transaction builder uses this address when the route was requested with referral support.

    • routes: RouterTradeRoute[]

      The sub-routes that make up the trade. Multiple entries represent a split trade, and each route can contain several sequential paths.

    • Optionalslippage?: Slippage

      The slippage tolerance attached to the route, as a decimal fraction. 0.01 represents 1%. It is optional for amount-in route responses.