diff options
| author | Adam Soltys <[email protected]> | 2025-07-08 09:22:55 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-07-08 09:22:55 -0700 |
| commit | f5deb7da5b4f8cefa55c2dd7ac0fed1f11d827ad (patch) | |
| tree | 8878354ce5a016d0b7960ccb357e3bca277b5516 /routes | |
| parent | eae157170b2c678394c7b687aa54329e98f2807b (diff) | |
| download | coinos-server-f5deb7da5b4f8cefa55c2dd7ac0fed1f11d827ad.tar.gz coinos-server-f5deb7da5b4f8cefa55c2dd7ac0fed1f11d827ad.zip | |
include tip in lnurl
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/lnurl.ts | 5 |
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, |
