From 425e712177de6f2d47e7d0486a347f0cbf4e0d0d Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 28 Mar 2025 18:02:38 +0000 Subject: remove total user balances --- lib/ecash.ts | 1 + lib/payments.ts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/ecash.ts b/lib/ecash.ts index 5a5776b5..bcd2b7f4 100644 --- a/lib/ecash.ts +++ b/lib/ecash.ts @@ -13,6 +13,7 @@ import { getEncodedTokenV4, } from "@cashu/cashu-ts"; + const { URL } = process.env; const m = new CashuMint(config.mintUrl); const w = new CashuWallet(m); diff --git a/lib/payments.ts b/lib/payments.ts index 07004fa2..24eed057 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -521,8 +521,10 @@ export const sendLightning = async ({ if (typeof amount !== "undefined") { amount = parseInt(amount); - if (amount < 0 || amount > SATS || Number.isNaN(amount)) + if (amount < 0 || amount > SATS || Number.isNaN(amount)) { + warn("invalid amount", amount); fail("Invalid amount"); + } } let { type, invoice_amount_msat, amount_msat, invoice_node_id, payee } = -- cgit v1.2.3