From 6e495b99c1925ad0282f71d25df3428bbf3fa9b9 Mon Sep 17 00:00:00 2001 From: Jeremy Klein Date: Tue, 14 Nov 2023 17:52:47 -0800 Subject: [PATCH 1/3] Add displayDecimals field to currency desciption --- umad-04-lnurlp-response.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/umad-04-lnurlp-response.md b/umad-04-lnurlp-response.md index 0020fcd..74bec0d 100644 --- a/umad-04-lnurlp-response.md +++ b/umad-04-lnurlp-response.md @@ -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", @@ -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. From 17a16fd65fb9a6999a7007b96e98587ad8fbd823 Mon Sep 17 00:00:00 2001 From: Jeremy Klein Date: Tue, 14 Nov 2023 17:54:24 -0800 Subject: [PATCH 2/3] Minor comment update. --- umad-04-lnurlp-response.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/umad-04-lnurlp-response.md b/umad-04-lnurlp-response.md index 74bec0d..34b5e40 100644 --- a/umad-04-lnurlp-response.md +++ b/umad-04-lnurlp-response.md @@ -27,7 +27,8 @@ The full structure of the LNURLP response is: // 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. + // is only for display purposes. The sender should assume zero if this field is ommitted, unless + // they know the proper display format of the target currency. "displayDecimals": number, }, { From 847f86d10929ad0b765c67cbeec509a612564466 Mon Sep 17 00:00:00 2001 From: Jeremy Klein Date: Wed, 15 Nov 2023 10:26:08 -0800 Subject: [PATCH 3/3] spelling --- umad-04-lnurlp-response.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umad-04-lnurlp-response.md b/umad-04-lnurlp-response.md index 34b5e40..e2f2d2a 100644 --- a/umad-04-lnurlp-response.md +++ b/umad-04-lnurlp-response.md @@ -27,7 +27,7 @@ The full structure of the LNURLP response is: // 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. The sender should assume zero if this field is ommitted, unless + // is only for display purposes. The sender should assume zero if this field is omitted, unless // they know the proper display format of the target currency. "displayDecimals": number, },