Page MenuHomePhabricator

[Cashtab] Prevent token qty errors on listings for large quantities
ClosedPublic

Authored by bytesofman on Fri, Oct 25, 22:48.

Details

Summary

Do all the math in Orderbook with BigInt and token satoshis. Do all the rendering with decimalized quantities.

This resolves errors caused by step calculations for large token quantitites with large decimals getting off because JS numbers.

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Branch
white-screen-on-select
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 30845
Build 61203: Build Diffcashtab-tests
Build 61202: arc lint + arc unit