HomePhabricator

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

Description

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

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

Reviewers: #bitcoin_abc, Kronkmeister

Reviewed By: #bitcoin_abc, Kronkmeister

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

Details

Provenance
bytesofmanAuthored on Fri, Oct 25, 21:35
bytesofmanPushed on Fri, Oct 25, 23:51
Reviewer
Restricted Project
Differential Revision
D17008: [Cashtab] Prevent token qty errors on listings for large quantities
Parents
rABC24fa92b7826a: [Cashtab] Expand blacklist
Branches
Unknown
Tags
Unknown