aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/send.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/send.js b/lib/send.js
index 247ad9f5..414c7e3e 100644
--- a/lib/send.js
+++ b/lib/send.js
@@ -63,7 +63,8 @@ send = async (amount, memo, hash, user) => {
conversionFee
);
- if (!account || account.balance < amount + conversionFee) {
+ if (!account || account.balance < amount + conversionFee - conversionFeeDeduction) {
+ l.warn("user attempting to send more than they have", user.id, amount, conversionFee);
throw new Error("Insufficient funds");
}