HomePhabricator

[Cashtab] Improve portability of getFormattedFiatPrice

Description

[Cashtab] Improve portability of getFormattedFiatPrice

Summary:
This function takes settings as a param because all of it's callsites happend to have it available. However it is only using the fiatCurrency key of settings to know what ticker to print.

Modify so we only take this ticker as as param and update callsights.

This is part of a broader rethink to simplify searching and sorting agora offers by price.

Test Plan: npm test

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

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

Details

Provenance
bytesofmanAuthored on Sun, Dec 22, 17:07
bytesofmanPushed on Mon, Dec 23, 03:53
Reviewer
Restricted Project
Differential Revision
D17385: [Cashtab] Improve portability of getFormattedFiatPrice
Parents
rABCf725b03574f7: [Automated] Update chainparams
Branches
Unknown
Tags
Unknown