From 7220097de888b2a3cf9d0f82c149e770d1f1db6d Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 7 Jan 2025 19:36:42 -0800 Subject: lower min fee --- lib/nwc.ts | 1 - lib/payments.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/nwc.ts b/lib/nwc.ts index 7b8dd8ca..791f18f5 100644 --- a/lib/nwc.ts +++ b/lib/nwc.ts @@ -123,7 +123,6 @@ const handle = (method, params, user, ev) => } await sendLightning({ amount, - fee: Math.max(5, Math.round(amount * 0.005)), user, pr, }); diff --git a/lib/payments.ts b/lib/payments.ts index 1f00106e..7536d923 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -497,7 +497,7 @@ export const sendLightning = async ({ ? decoded.invoice_amount_msat : decoded.amount_msat; - fee = Math.max(parseInt(fee || 0), 5); + fee = Math.max(parseInt(fee || 0), 2); if (fee < 0) fail("Fee cannot be negative"); const { pays } = await ln.listpays(pr); -- cgit v1.2.3