diff options
| author | Adam Soltys <[email protected]> | 2026-09-16 04:53:22 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-16 04:53:22 -0700 |
| commit | dcca73434f93e8cf8a912e55a6e098791277a976 (patch) | |
| tree | 8543a2b3d6199f01e70461259bc5242ab9a56777 | |
| parent | 1d87d0d36feea526f8f6bf4a62b012132bd36128 (diff) | |
| download | coinos-ui-dcca73434f93e8cf8a912e55a6e098791277a976.tar.gz coinos-ui-dcca73434f93e8cf8a912e55a6e098791277a976.zip | |
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 <[email protected]>
| -rw-r--r-- | src/lib/parse.ts | 1 | ||||
| -rw-r--r-- | src/routes/(app)/ecash/mint/+server.ts | 7 |
2 files changed, 0 insertions, 8 deletions
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); -} |
