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)
the number to convert to BN
the BN precision to use (i.e. QUOTE_PRECISION and BASE_PRECISION from drift sdk)
Generated using TypeDoc
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)