aboutsummaryrefslogtreecommitdiffstats
path: root/lib/payments.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-01-29 15:23:09 -0800
committerAdam Soltys <[email protected]>2024-01-29 15:23:09 -0800
commite879b16e5f7f3f6ffae86d3eaa208991e574f5fc (patch)
treec7c09cde4640d95a008f86594d32e1344291a982 /lib/payments.js
parent58f58fc95213538b69570d5f39612743d5f5ddb0 (diff)
downloadcoinos-server-e879b16e5f7f3f6ffae86d3eaa208991e574f5fc.tar.gz
coinos-server-e879b16e5f7f3f6ffae86d3eaa208991e574f5fc.zip
rm log
Diffstat (limited to 'lib/payments.js')
-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();