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

    Type Alias ApiRouterCompleteTradeRouteBody

    ApiRouterCompleteTradeRouteBody: ApiRouterPartialCompleteTradeRouteBody & (
        | { coinInAmount: Balance }
        | { coinOutAmount: Balance; slippage: Slippage }
    )

    Full body for router route construction. Either coinInAmount or coinOutAmount must be specified, not both. If coinOutAmount is given, slippage is required.

    Type Declaration

    • { coinInAmount: Balance }
      • coinInAmount: Balance

        The input amount in the input coin's smallest unit. This selects exact-input route construction.

    • { coinOutAmount: Balance; slippage: Slippage }
      • coinOutAmount: Balance

        The target output amount in the output coin's smallest unit. This selects exact-output route construction.

      • slippage: Slippage

        The maximum decimal fraction of output or input movement accepted by the exact-output route. 0.01 represents 1%.