HomePhabricator

[ecash-herald] Format sent xec amounts

Description

[ecash-herald] Format sent xec amounts

Summary:
T2972

Add a new function to convert satoshis to a formatted string appropriate for a msg.

Implement for normal XEC txs. Not implemented (yet) for encrypted cashtab msgs, airdrops, and fusions as these functions preferencially display fiat values if they have them. Will add here after adding a function to format fiat values.

Test Plan: npm test

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Subscribers: PiRK

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

Details

Provenance
bytesofmanAuthored on Jun 19 2023, 19:30
bytesofmanPushed on Jun 19 2023, 21:31
Reviewer
Restricted Project
Differential Revision
D14079: [ecash-herald] Format sent xec amounts
Parents
rABCe77a851c6b52: [ecash-herald] Miner parsing for molepool
Branches
Unknown
Tags
Unknown