Page MenuHomePhabricator

[Cashtab] Improve portability of getFormattedFiatPrice
ClosedPublic

Authored by bytesofman on Dec 22 2024, 17:09.

Details

Reviewers
emack
Group Reviewers
Restricted Project
Commits
rABCa2e7986400fe: [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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable