Documentation
    Preparing search index...

    Function tryGetMinAmountWithSlippageTolerance

    • Get the minimum amount with a slippage tolerance e.g. Your estimated amount you receive is 10000 with 100 slippage tolerance. The min amount you receive will be 9900.

      Parameters

      • amount: The amount to apply the fee to
      • slippage_tolerance_bps: The slippage tolerance in bps (should be in range 0..BPS_DENOMINATOR)

      Returns

      • u64: The minimum amount

      Parameters

      • amount: bigint
      • slippage_tolerance_bps: number

      Returns bigint