diff --git a/cashu/lightning/corelightningrest.py b/cashu/lightning/corelightningrest.py index da36cdc1..1f02dfc4 100644 --- a/cashu/lightning/corelightningrest.py +++ b/cashu/lightning/corelightningrest.py @@ -212,7 +212,7 @@ async def pay_invoice( checking_id = data["payment_hash"] preimage = data["payment_preimage"] - fee_msat = data["msatoshi_sent"] - data["msatoshi"] + fee_msat = data["amount_sent_msat"] - data["amount_msat"] return PaymentResponse( ok=self.statuses.get(data["status"]),