Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the decimals field to payreq paymentinfo for convenience #14

Merged
merged 1 commit into from
Dec 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions umad-06-payreq-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ The full structure of the LNURLP response is:
// In this context, this is just for convenience. The conversion rate is also baked into the invoice amount itself.
// `invoice amount = amount * multiplier + exchangeFeesMillisatoshi`
"multiplier": number,
// Number of digits after the decimal point for the receiving currency. For example, in USD, by convention, there are
// 2 digits for cents - $5.95. In this case, `decimals` would be 2. This should align with the currency's `decimals`
// field in the LNURLP response. It is included here for convenience. See [UMAD-04](/uma-04-local-currency.md) for
// details, edge cases, and examples.
"decimals": number,
// The fees charged (in millisats) by the receiving VASP to convert to the target currency.
// This is separate from the multiplier rate.
"exchangeFeesMillisatoshi": number
Expand Down
Loading