diff options
| author | Adam Soltys <[email protected]> | 2025-07-31 21:39:49 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-07-31 21:39:54 -0700 |
| commit | 7032731d56ccb0d5b158b08b81fcf1c9e4e4211e (patch) | |
| tree | 05500691e5657ab576758d0fc5a062f05c36440c | |
| parent | 2e9cded9d7d3fa0ce383680745fe633d052a4b79 (diff) | |
| download | coinos-server-7032731d56ccb0d5b158b08b81fcf1c9e4e4211e.tar.gz coinos-server-7032731d56ccb0d5b158b08b81fcf1c9e4e4211e.zip | |
always define minSendable and maxSendable
| -rw-r--r-- | routes/lnurl.ts | 6 |
1 files 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, |
