aboutsummaryrefslogtreecommitdiffstats
path: root/routes/assets.js
diff options
context:
space:
mode:
Diffstat (limited to 'routes/assets.js')
-rw-r--r--routes/assets.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/assets.js b/routes/assets.js
index db387595..65ca75aa 100644
--- a/routes/assets.js
+++ b/routes/assets.js
@@ -71,8 +71,8 @@ app.post("/assets", auth, async (req, res) => {
});
if (Math.round(funded.fee * SATS) > account.balance) {
- l.error("amount exceeds balance", asset_amount, fee, account.balance);
- throw new Error("insufficient funds");
+ l.error("amount exceeds balance", asset_amount, funded.fee, account.balance);
+ throw new Error("Insufficient funds");
}
account.balance -= Math.round(funded.fee * SATS);