Skip to content

Commit

Permalink
fee return working for sat
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Sep 6, 2024
1 parent ab6baa0 commit c104a28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cashu/lightning/lnmarkets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c104a28

Please sign in to comment.