@pwngh/economy-lab
    Preparing search index...

    Function decodeAmount

    • Parses a decimal string such as '12.34' or '-0.05' into an Amount. A bad format, more than two decimal places, digit grouping (the canonical wire is ungrouped), or a value past the 64-bit range throws INVALID_AMOUNT rather than silently accepting it.

      Parameters

      Returns Amount