-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] Convert USD amount to SATs before requesting a lnurl invoice (#207
) * * Added `fetchBitcoinPriceUSD` to wallet.ts, which fetches the price from Coinbase * Modified `lnurlPayFirst`: avoid potentially query the host 2 times. * Modified `lnurlPaySecond`: if `mintStore.activeUnit` is `usd` then calculate the equivalent in satoshis and use that for the invoice. * one unique definition of
- Loading branch information
1 parent
a039e5f
commit 6c8dfee
Showing
2 changed files
with
31 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters