diff options
| author | Adam Soltys <[email protected]> | 2025-01-07 19:36:42 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-01-07 19:36:42 -0800 |
| commit | 7220097de888b2a3cf9d0f82c149e770d1f1db6d (patch) | |
| tree | a7c3334e70a834a38ecf3e1c14d548426130be42 /lib | |
| parent | 40ceba31899c8d0aa10b3007fea62fb282cd7a60 (diff) | |
| download | coinos-server-7220097de888b2a3cf9d0f82c149e770d1f1db6d.tar.gz coinos-server-7220097de888b2a3cf9d0f82c149e770d1f1db6d.zip | |
lower min fee
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/nwc.ts | 1 | ||||
| -rw-r--r-- | lib/payments.ts | 2 |
2 files changed, 1 insertions, 2 deletions
@@ -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); |
