aboutsummaryrefslogtreecommitdiffstats
path: root/lib/db.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-12-22 12:57:02 -0800
committerAdam Soltys <[email protected]>2023-12-22 12:57:02 -0800
commitfbf27aaeb56cabc004c30215832126c98e7e4c6a (patch)
tree2414e2a4db343c267ec9b31bed44157d9d7cf124 /lib/db.js
parent313e8d4a4277631feed002f3dedf4907cc881ced (diff)
downloadcoinos-server-fbf27aaeb56cabc004c30215832126c98e7e4c6a.tar.gz
coinos-server-fbf27aaeb56cabc004c30215832126c98e7e4c6a.zip
return platform fee for ln
Diffstat (limited to 'lib/db.js')
-rw-r--r--lib/db.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/db.js b/lib/db.js
index ab88925f..d14e4962 100644
--- a/lib/db.js
+++ b/lib/db.js
@@ -18,7 +18,7 @@ local covered = math.min(credit, ourfee)
ourfee = ourfee - covered
if balance < amount + tip + fee + ourfee then
- return {err = 'Insufficient funds'}
+ return {err = 'Insufficient funds ' .. balance .. ' vs ' .. amount + tip + fee + ourfee}
end
redis.call('decrby', creditKey, tostring(math.floor(covered)))