Checks an amount against the token's precision, the Numeric 38,10 ceiling, and an optional
range. Returns undefined when nothing is wrong, including for the empty string: empty is empty,
and required-ness belongs to the form. A max that is not itself a decimal returns invalid-max
rather than reading as no ceiling, so a malformed balance cannot silently uncap the amount.
Checks an amount against the token's precision, the
Numeric 38,10ceiling, and an optional range. Returnsundefinedwhen nothing is wrong, including for the empty string: empty is empty, and required-ness belongs to the form. Amaxthat is not itself a decimal returnsinvalid-maxrather than reading as no ceiling, so a malformed balance cannot silently uncap the amount.