diff options
| author | Adam Soltys <[email protected]> | 2026-02-24 13:18:42 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-24 13:18:42 -0800 |
| commit | ad7b09b43323d0ffc0a8ddabb43e4838a184c697 (patch) | |
| tree | fbf2a59f81771b2938f474c8e7b35a497d2960e4 /routes/info.ts | |
| parent | 9e97e040617bfa0b40150c0eba298bf186bbeeaf (diff) | |
| download | coinos-server-ad7b09b43323d0ffc0a8ddabb43e4838a184c697.tar.gz coinos-server-ad7b09b43323d0ffc0a8ddabb43e4838a184c697.zip | |
formatting
Diffstat (limited to 'routes/info.ts')
| -rw-r--r-- | routes/info.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/routes/info.ts b/routes/info.ts index a0ac7693..35d1c315 100644 --- a/routes/info.ts +++ b/routes/info.ts @@ -23,15 +23,10 @@ export default { // } const funds = await ln.listfunds(); - const lnchannel = parseInt( - funds.channels.reduce((a, b) => a + b.channel_sat, 0), - ); + 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)); - const cash = getDecodedToken(await g("cash")).proofs.reduce( - (a, b) => a + b.amount, - 0, - ); + const cash = getDecodedToken(await g("cash")).proofs.reduce((a, b) => a + b.amount, 0); const info = { cash, |
