From c72fa2a5ccf1cc04073f9ff12606491971dadd36 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 16 Sep 2026 04:53:22 -0700 Subject: ecash: redeem tokens by melting to the user's own invoice Redeeming ecash is now a plain NUT-05 melt into a Lightning invoice owned by the redeeming user, credited by the regular lightning listener. Drop the house proof pool and its lock, the /mint and /melt routes, and the special-casing of a mint account in NWC and payment routing. Tokens are decoded against the mint's keyset list so short v1 ids resolve, and an empty keyset list is never cached. Co-Authored-By: Claude Fable 5.1 --- routes/info.ts | 4 ---- 1 file changed, 4 deletions(-) (limited to 'routes/info.ts') diff --git a/routes/info.ts b/routes/info.ts index aae130bf..4ab11872 100644 --- a/routes/info.ts +++ b/routes/info.ts @@ -2,7 +2,6 @@ import { archive } from "$lib/db"; import { db } from "$lib/db"; import { getHealthStatus } from "$lib/health"; import ln from "$lib/ln"; -import { pool } from "$lib/ecash"; export default { async health(_, res) { @@ -28,10 +27,7 @@ export default { ); const lnwallet = parseInt(funds.outputs.reduce((a, b) => a + b.value, 0)); - const cash = (await pool()).reduce((a, b) => a + b.amount, 0); - const info = { - cash, lnchannel, lnwallet, }; -- cgit v1.2.3