Page MenuHomePhabricator

[Cashtab] Create adjustTokenQtyForDecimals function
AbandonedPublic

Authored by kieran709 on Oct 10 2022, 13:28.

Details

Reviewers
bytesofman
Group Reviewers
Restricted Project
Summary

Related to T2690. Created a function, adjustTokenQtyForDecimals, which handles adjusting the token quantity for decimals throughout the app. Replaced logic throughout the app that adjusted token quantity for decimals with the new function, and added unit tests.

Test Plan

cd web/cashtab && npm start
npm test - all tests pass

Diff Detail

Repository
rABC Bitcoin ABC
Branch
adjust-token-decimals-function
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 20420
Build 40513: Build Diffcashtab-tests
Build 40512: arc lint + arc unit

Event Timeline

In retrospect, I don't think this adding value by simplifying the app and standardizing this application. It's happening in a few places as a one-liner function, which is okay. Go ahead and abandon this.

This revision now requires changes to proceed.Oct 11 2022, 16:24