aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-09-19 20:53:23 -0700
committerAdam Soltys <[email protected]>2025-09-19 20:53:23 -0700
commitf9c8a7694e11b48f92ba423a571861839f54d8d4 (patch)
treee0a62a07e8a20ac78cccb7a53657e71e6e7da0c8 /lib
parent672d5ba35c05bbbbc564e47c19c11736c01720c7 (diff)
downloadcoinos-server-f9c8a7694e11b48f92ba423a571861839f54d8d4.tar.gz
coinos-server-f9c8a7694e11b48f92ba423a571861839f54d8d4.zip
fix bolt12 invoices
Diffstat (limited to 'lib')
-rw-r--r--lib/invoices.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/invoices.ts b/lib/invoices.ts
index 1800b859..e2575723 100644
--- a/lib/invoices.ts
+++ b/lib/invoices.ts
@@ -104,7 +104,7 @@ export const generate = async ({ invoice, user }) => {
amount = Math.round(r.invoice_amount_msat / 1000);
r.bolt12 = bolt12;
} else {
- const r = await ln.offer({
+ r = await ln.offer({
amount: amount ? `${amount + tip}sat` : "any",
label: `${id} ${user.username} ${new Date()}`,
description: memo || id,