Skip to content

Commit

Permalink
Add displayDecimals field to currency desciption
Browse files Browse the repository at this point in the history
  • Loading branch information
jklein24 authored Nov 15, 2023
1 parent effcbec commit 6e495b9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion umad-04-lnurlp-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ The full structure of the LNURLP response is:
"minSendable": number,
"maxSendable": number,
// Estimated millisats per "unit" (eg. 1 cent in USD)
"multiplier": number
"multiplier": number,
// Number of digits after the decimal point for display on the sender side. For example,
// in USD, by convention, there are 2 digits for cents - $5.95. in this case, `displayDecimals`
// would be 2. Note that the multiplier is still always in the smallest unit (cents). This field
// is only for display purposes.
"displayDecimals": number,
},
{
"code": string, // eg. "BTC",
Expand All @@ -32,6 +37,7 @@ The full structure of the LNURLP response is:
"minSendable": number,
"maxSendable": number,
"multiplier": 1 // estimated millisats per "unit" (eg. 1 cent in USD)
"displayDecimals": number,
},
],
// Required data about the payer. See LUD-18 for details.
Expand Down

0 comments on commit 6e495b9

Please sign in to comment.