From 41ff5eb1261ad0878b080b5a85f6553223108429 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 22 Nov 2024 21:02:11 -0800 Subject: migrate info endpoint --- routes/info.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routes') diff --git a/routes/info.ts b/routes/info.ts index 8892b7f7..e24d4621 100644 --- a/routes/info.ts +++ b/routes/info.ts @@ -21,7 +21,7 @@ export default { ); const lnwallet = parseInt(funds.outputs.reduce((a, b) => a + b.value, 0)); - const cash = getDecodedToken(await g("cash")).token[0].proofs.reduce( + const cash = getDecodedToken(await g("cash")).proofs.reduce( (a, b) => a + b.amount, 0, ); -- cgit v1.2.3