aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/send.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/send.js b/lib/send.js
index 12c3f5aa..660fcae4 100644
--- a/lib/send.js
+++ b/lib/send.js
@@ -56,7 +56,7 @@ send = async (amount, memo, hash, user) => {
amt: amount,
payment_request: hash,
max_parts: 10,
- fee_limit: { fixed: 1000 },
+ fee_limit: { fixed: Math.min(10000, account.balance) },
});
if (m.payment_error) throw new Error(m.payment_error);