Function createAmountFromDecimals

  • Creates an amount from a decimal value which will be converted to the lowest possible unit using the provided decimals.

    Type Parameters

    • I extends string

    • D extends number

    Parameters

    • decimalAmount: number
    • identifier: I
    • decimals: D

    Returns Amount<I, D>

Generated using TypeDoc