Function assertAmount

  • Ensures that a given amount has the provided identifier and decimals.

    Type Parameters

    • I extends string

    • D extends number

    Parameters

    • amount: Amount<string, number>
    • identifier: I
    • decimals: D

    Returns asserts amount is Amount<I, D>

Generated using TypeDoc