Function createAmountFromDecimals
- createAmountFromDecimals<I, D>(decimalAmount: number, identifier: I, decimals: D): Amount<I, D>
-
Type Parameters
-
I extends string
-
D extends number
Parameters
-
decimalAmount: number
-
identifier: I
-
decimals: D
Returns Amount<I, D>
Creates an amount from a decimal value which will be converted to the lowest possible unit using the provided decimals.