aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/payments.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/payments.ts b/lib/payments.ts
index ab05f070..dbd7242c 100644
--- a/lib/payments.ts
+++ b/lib/payments.ts
@@ -276,7 +276,7 @@ const pay = async ({ aid = undefined, amount, to, user }) => {
).toString();
}
- const maxfee = getMaxFee(amount);
+ const maxfee = Math.max(5, Math.round(amount * 0.005));
if (lnurl) {
amount -= maxfee;
const { callback } = (await got(lnurl).json()) as any;