From 877495729671d573cf5fcfb30b7fcf14e643a092 Mon Sep 17 00:00:00 2001 From: Roland Bewick Date: Fri, 15 Dec 2023 16:27:44 +0700 Subject: [PATCH] fix: convert fees_paid to sats --- src/webln/NostrWeblnProvider.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/webln/NostrWeblnProvider.ts b/src/webln/NostrWeblnProvider.ts index 7bad92c..b54b479 100644 --- a/src/webln/NostrWeblnProvider.ts +++ b/src/webln/NostrWeblnProvider.ts @@ -414,6 +414,7 @@ export class NostrWebLNProvider implements WebLNProvider, Nip07Provider { ...transaction, // NWC uses msats - convert to sats for webln amount: Math.floor(transaction.amount / 1000), + fees_paid: Math.floor(transaction.fees_paid / 1000), })), }), );