aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-15 16:58:17 -0800
committerAdam Soltys <[email protected]>2026-02-15 16:58:17 -0800
commitc7e8f628aa215caaa999f06d7fccb910fd5cc099 (patch)
tree86af97b298f4d4023b5b00a4c2498b218ecda628 /src/lib
parent5323057a68c1e2607128a3b216a767802725c52c (diff)
downloadcoinos-ui-c7e8f628aa215caaa999f06d7fccb910fd5cc099.tar.gz
coinos-ui-c7e8f628aa215caaa999f06d7fccb910fd5cc099.zip
fix custodial bitcoin sends
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/parse.ts8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/parse.ts b/src/lib/parse.ts
index 48541728..06adfd7e 100644
--- a/src/lib/parse.ts
+++ b/src/lib/parse.ts
@@ -48,7 +48,7 @@ export default async (s, host, cookies) => {
}
const { validate } = await loadValidate();
- if (validate(t) || isLiquid(t)) {
+ if (validate(t) || isLiquid(t) || t.startsWith("bcrt1")) {
let r = `/send/bitcoin/${t}`;
if (amount) r += `/${Math.round(amount * sats)}`;
redirect(307, r);
@@ -123,10 +123,4 @@ export default async (s, host, cookies) => {
} catch {}
if (fund) redirect(307, `/send/fund/${t}`);
-
- try {
- invoice ||= await get(`/invoice/${t}`);
- } catch {}
-
- if (invoice) redirect(307, `/invoice/${invoice.id}`);
};