diff options
Diffstat (limited to 'routes/info.ts')
| -rw-r--r-- | routes/info.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/routes/info.ts b/routes/info.ts index adad02c6..f2bcda1a 100644 --- a/routes/info.ts +++ b/routes/info.ts @@ -1,5 +1,4 @@ -import { archive } from "$lib/db"; -import { db, g } from "$lib/db"; +import { g } from "$lib/db"; import { getHealthStatus } from "$lib/health"; import ln from "$lib/ln"; import { getDecodedToken } from "@cashu/cashu-ts"; @@ -12,8 +11,6 @@ export default { }, async balances(c) { - let total = 0; - const funds = await ln.listfunds(); const lnchannel = parseInt(funds.channels.reduce((a, b) => a + b.channel_sat, 0)); const lnwallet = parseInt(funds.outputs.reduce((a, b) => a + b.value, 0)); |
