HomePhabricator

[ecash-herald] Improve satsToFormattedValue fn

Description

[ecash-herald] Improve satsToFormattedValue fn

Summary:
We do not really want to round everything bigger than 1000 to no decimal places. Also, we should accept bigint for satoshis input.

Needed for D17180. Split out here for "one thing" isolation.

Test Plan: npm test

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
bytesofmanAuthored on Thu, Nov 21, 23:03
bytesofmanPushed on Fri, Nov 22, 13:33
Reviewer
Restricted Project
Differential Revision
D17181: [ecash-herald] Improve satsToFormattedValue fn
Parents
rABC824e210996cc: [chronik-client] Support isFinal key for Tx
Branches
Unknown
Tags
Unknown