Skip to content

Commit

Permalink
chore: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz committed Aug 29, 2023
1 parent fc516ea commit e00692d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/webln/NostrWeblnProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ export class NostrWebLNProvider implements WebLNProvider, Nip07Provider {
undefined,
(result) => result.balance !== undefined,
(result) => ({
// NWC uses msats - convert to sats for webln
balance: Math.floor(result.balance / 1000),
max_amount:
result.max_amount !== undefined
Expand Down

0 comments on commit e00692d

Please sign in to comment.