HomePhabricator

[Cashtab] Add max qty validation to isValidTokenSendOrBurnAmount

Description

[Cashtab] Add max qty validation to isValidTokenSendOrBurnAmount

Summary:
Depends on D16949

This has been overlooked in Cashtab. In practice, most users would not have a balance of a token greater than this amount (since it takes multiple max-qty mint txs and token markets are not yet supported).

It is part of the spec tho, and may not be an edge case for long. Add it.

Test Plan: npm test

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Subscribers: PiRK

Differential Revision: https://reviews.bitcoinabc.org/D16950

Details

Provenance
bytesofmanAuthored on Oct 21 2024, 17:45
bytesofmanPushed on Oct 21 2024, 23:02
Reviewer
Restricted Project
Differential Revision
D16950: [Cashtab] Add max qty validation to isValidTokenSendOrBurnAmount
Parents
rABCefb1371b033d: [Cashtab] Rename getMaxMintAmount to getMaxDecimalizedSlpQty
Branches
Unknown
Tags
Unknown