HomePhabricator

[ecash-herald] display amounts in fiat if prices are available

Description

[ecash-herald] display amounts in fiat if prices are available

Summary:
T2972

Add new function satsToFormattedFiat that accepts satoshis and coingeckoPrices and returns a formatted string. Returns amount in XEC if dollar amount is less than 1.

Test Plan: npm test

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Subscribers: emack

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

Details

Provenance
bytesofmanAuthored on Jun 19 2023, 22:10
bytesofmanPushed on Jun 20 2023, 16:07
Reviewer
Restricted Project
Differential Revision
D14080: [ecash-herald] display amounts in fiat if prices are available
Parents
rABC265b7aada34d: [ecash-script] Add new function getStackArray
Branches
Unknown
Tags
Unknown