From f5deb7da5b4f8cefa55c2dd7ac0fed1f11d827ad Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 8 Jul 2025 09:22:55 -0700 Subject: include tip in lnurl --- routes/lnurl.ts | 5 +++-- 1 file 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, -- cgit v1.2.3