HomePhabricator

[Cashtab] Better function to convert user-entered fiat prices to satoshis

Description

[Cashtab] Better function to convert user-entered fiat prices to satoshis

Summary:
Add and test (but do not implement) a function to convert user-entered fiat amounts to satoshis of XEC

Ref D15662 to see where this is going. Some refactor work is required to consolidate Cashtab's send xec amount validation functions.

Test Plan: npm test

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
bytesofmanAuthored on Mar 11 2024, 12:37
bytesofmanPushed on Mar 11 2024, 13:47
Reviewer
Restricted Project
Differential Revision
D15670: [Cashtab] Better function to convert user-entered fiat prices to satoshis
Parents
rABC4fccfe7eed3c: [Cashtab] Add and implement new helper function to get user locale
Branches
Unknown
Tags
Unknown