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.
Differential D17008
[Cashtab] Prevent token qty errors on listings for large quantities bytesofman on Oct 25 2024, 22:48. Authored by Tags None Subscribers None
Details
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. npm test
Diff Detail
Event TimelineComment Actions remove debug log, better comments, validation function should also do math with bigints |