aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/payments.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/payments.js b/lib/payments.js
index bfce3db8..461b07c1 100644
--- a/lib/payments.js
+++ b/lib/payments.js
@@ -222,7 +222,6 @@ export let autowithdraw = async (user) => {
let to = destination.trim();
let balance = await g(`balance:${id}`);
let amount = balance - reserve;
- console.log("AMT", amount, balance, reserve);
if (balance > threshold) await pay({ amount, to, user });
}
} catch (e) {
@@ -242,7 +241,7 @@ let pay = async ({ amount, to, user }) => {
).toString();
}
- let maxfee = getMaxFee(amount);
+ let maxfee = getMaxFee(amount);
if (lnurl) {
amount -= maxfee;
let { callback } = await got(lnurl).json();