Function numberToSafeBN

  • Converts a number to BN makes sure the number is safe to convert to BN (that it does not overflow number after multiplying by precision)

    Parameters

    • number: number

      the number to convert to BN

    • precision: BN

      the BN precision to use (i.e. QUOTE_PRECISION and BASE_PRECISION from drift sdk)

    Returns BN

Generated using TypeDoc