Function slippageFromFloat

  • Calculates the slippage from a float percentage represtend as a number, string or Decimal

    Returns

    Decimal

    Parameters

    • slippage: string | number | Decimal

      number | Decimal | string - the slippage represented as a float percentage. '1' being 1%

    • type: SlippageType

      SlippageType - buying or selling

    Returns Decimal

Generated using TypeDoc