aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-07 22:30:24 -0800
committerAdam Soltys <[email protected]>2024-11-07 22:30:24 -0800
commit74666c45287cd59c3726bd802935e65421776f89 (patch)
tree89d1ec943b5dbd5919f8ea0fc00e7e156a7cd541 /lib
parentf0b9530a28a1a1146df0d08d3a60cc2ff7bbf760 (diff)
downloadcoinos-server-74666c45287cd59c3726bd802935e65421776f89.tar.gz
coinos-server-74666c45287cd59c3726bd802935e65421776f89.zip
default maxfee for nwc
Diffstat (limited to 'lib')
-rw-r--r--lib/nwc.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nwc.ts b/lib/nwc.ts
index f3416f2e..0cbced1f 100644
--- a/lib/nwc.ts
+++ b/lib/nwc.ts
@@ -103,7 +103,7 @@ const handle = (method, params, user) =>
}
await sendLightning({
amount,
- maxfee: undefined,
+ maxfee: Math.max(5, Math.round(amount * 0.005)),
user,
pr,
});