aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-01-07 19:36:42 -0800
committerAdam Soltys <[email protected]>2025-01-07 19:36:42 -0800
commit7220097de888b2a3cf9d0f82c149e770d1f1db6d (patch)
treea7c3334e70a834a38ecf3e1c14d548426130be42 /lib
parent40ceba31899c8d0aa10b3007fea62fb282cd7a60 (diff)
downloadcoinos-server-7220097de888b2a3cf9d0f82c149e770d1f1db6d.tar.gz
coinos-server-7220097de888b2a3cf9d0f82c149e770d1f1db6d.zip
lower min fee
Diffstat (limited to 'lib')
-rw-r--r--lib/nwc.ts1
-rw-r--r--lib/payments.ts2
2 files changed, 1 insertions, 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);