HomePhabricator

[Cashtab] Change dust param from BCHA to sats

Description

[Cashtab] Change dust param from BCHA to sats

Summary:
The currency.dust param has been set to '0.00000546' to reflect the minimum amount of BCHA that the app will send.

To support potential decimal place moves, this figure should be in sats.

This diff deletes the currency.dust parameter, replaces it with currency.dustSats, and parses this value for the arbitrary currency.cashDecimals figure wherever it is used in the app. Unit tests are included to ensure consistent application.

Test Plan:
npm test
npm start
Try to send 0.00000545 BCHA and note error msg is correct

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

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

Details

Provenance
Joey King <joseph.roy.king@gmail.com>Authored on May 10 2021, 20:56
bytesofmanPushed on May 11 2021, 19:26
Reviewer
Restricted Project
Differential Revision
D9495: [Cashtab] Change dust param from BCHA to sats
Parents
rABC38b2d48064b4: Factorize flushing the inventory buffer when it reaches its max size
Branches
Unknown
Tags
Unknown

Event Timeline