From dcca73434f93e8cf8a912e55a6e098791277a976 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 16 Sep 2026 04:53:22 -0700 Subject: ecash: drop the mint account special-case and the mint route The server no longer keeps a house ecash pool, so there is no mint account to skip when parsing a payment and no /ecash/mint endpoint. Co-Authored-By: Claude Fable 5.1 --- src/lib/parse.ts | 1 - src/routes/(app)/ecash/mint/+server.ts | 7 ------- 2 files changed, 8 deletions(-) delete mode 100644 src/routes/(app)/ecash/mint/+server.ts (limited to 'src') diff --git a/src/lib/parse.ts b/src/lib/parse.ts index 03cd0c3d..663b2e42 100644 --- a/src/lib/parse.ts +++ b/src/lib/parse.ts @@ -73,7 +73,6 @@ export default async (s, host, cookies) => { } else if (t.toLowerCase().startsWith("ln")) { try { invoice = await get(`/invoice/${t}`); - if (invoice.user.username === "mint") throw new Error("mint payment"); } catch (e) { if (t.toLowerCase().startsWith("lno")) { const { offer_amount_msat: a } = await get(`/decode/${t}`); diff --git a/src/routes/(app)/ecash/mint/+server.ts b/src/routes/(app)/ecash/mint/+server.ts deleted file mode 100644 index 02170650..00000000 --- a/src/routes/(app)/ecash/mint/+server.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { auth, post } from "$lib/utils"; -import { json } from "@sveltejs/kit"; - -export async function POST({ cookies, request }) { - const result = await post("/mint", await request.json(), auth(cookies)); - return json(result); -} -- cgit v1.2.3