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
Lint
Lint Not Applicable
Unit
Tests Not Applicable