aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-07-08 09:22:55 -0700
committerAdam Soltys <[email protected]>2025-07-08 09:22:55 -0700
commitf5deb7da5b4f8cefa55c2dd7ac0fed1f11d827ad (patch)
tree8878354ce5a016d0b7960ccb357e3bca277b5516 /routes
parenteae157170b2c678394c7b687aa54329e98f2807b (diff)
downloadcoinos-server-f5deb7da5b4f8cefa55c2dd7ac0fed1f11d827ad.tar.gz
coinos-server-f5deb7da5b4f8cefa55c2dd7ac0fed1f11d827ad.zip
include tip in lnurl
Diffstat (limited to 'routes')
-rw-r--r--routes/lnurl.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/routes/lnurl.ts b/routes/lnurl.ts
index 2ed390c1..4585e0b5 100644
--- a/routes/lnurl.ts
+++ b/routes/lnurl.ts
@@ -187,11 +187,12 @@ export default {
const id = v4();
await s(`lnurl:${id}`, uid);
+ const total = (parseInt(invoice.amount) + parseInt(invoice.tip)) * 1000;
res.send({
allowsNostr: true,
- minSendable: invoice.amount * 1000,
- maxSendable: invoice.amount ? invoice.amount * 1000 : undefined,
+ minSendable: total,
+ maxSendable: invoice.amount ? total : undefined,
metadata,
nostrPubkey: serverPubkey,
commentAllowed: 512,