From b5b3584a7fd8866b7f360c4fda738d67d787825f Mon Sep 17 00:00:00 2001 From: thesimplekid Date: Thu, 10 Oct 2024 08:45:41 +0200 Subject: [PATCH] fix: address amount defined in invoice and request --- 05.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/05.md b/05.md index c555d44..e83f7f9 100644 --- a/05.md +++ b/05.md @@ -32,7 +32,7 @@ The wallet `Alice` includes the following `PostMeltQuoteBolt11Request` data in i } ``` -Here, `request` is the bolt11 Lightning invoice to be paid and `unit` is the unit the wallet would like to pay with. `amount` is the amount to be paid if the invoice does not have a defined amount. +Here, `request` is the bolt11 Lightning invoice to be paid and `unit` is the unit the wallet would like to pay with. `amount` is an integer or null, representing the amount to be paid. If the invoice already defines an amount, the amount in the PostMeltQuoteBolt11Request **MUST** match the amount in the invoice exactly. The mint `Bob` then responds with a `PostMeltQuoteBolt11Response`: