From c104a28a797ef40bc874ed37923a509e461c9419 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Fri, 6 Sep 2024 18:06:44 +0200 Subject: [PATCH] fee return working for sat --- cashu/lightning/lnmarkets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cashu/lightning/lnmarkets.py b/cashu/lightning/lnmarkets.py index b3004dcb..55bc33de 100644 --- a/cashu/lightning/lnmarkets.py +++ b/cashu/lightning/lnmarkets.py @@ -243,10 +243,11 @@ async def pay_invoice( # lnmarkets does not provide a payment_preimage :( checking_id = data["id"] + fee_paid = int(data["fee"]) return PaymentResponse( ok=True, checking_id=checking_id, - fee=Amount(unit=self.unit, amount=quote.fee_reserve), + fee=Amount(unit=self.unit, amount=fee_paid), ) async def get_invoice_status(self, checking_id: str) -> PaymentStatus: