From 7032731d56ccb0d5b158b08b81fcf1c9e4e4211e Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 31 Jul 2025 21:39:49 -0700 Subject: always define minSendable and maxSendable --- routes/lnurl.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routes/lnurl.ts b/routes/lnurl.ts index 59cc58e1..00167291 100644 --- a/routes/lnurl.ts +++ b/routes/lnurl.ts @@ -2,7 +2,7 @@ import { db, g, s } from "$lib/db"; import { generate } from "$lib/invoices"; import { err, warn } from "$lib/logging"; import { serverPubkey } from "$lib/nostr"; -import { bail, fail, getInvoice, getUser } from "$lib/utils"; +import { SATS, bail, fail, getInvoice, getUser } from "$lib/utils"; import { bech32 } from "bech32"; import got from "got"; import { v4 } from "uuid"; @@ -215,8 +215,8 @@ export default { res.send({ allowsNostr: true, - minSendable: invoice.amount ? total : undefined, - maxSendable: invoice.amount ? total : undefined, + minSendable: invoice.amount ? total : 1000, + maxSendable: invoice.amount ? total : 10 * 1000 * SATS, metadata, nostrPubkey: serverPubkey, commentAllowed: 512, -- cgit v1.2.3