Page MenuHomePhabricator

[Cashtab] Change dust param from BCHA to sats
ClosedPublic

Authored by bytesofman on May 10 2021, 20:59.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABC89eb5baefec1: [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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable