diff options
| -rw-r--r-- | routes/liquid/send.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/routes/liquid/send.js b/routes/liquid/send.js index b844590d..c6512a89 100644 --- a/routes/liquid/send.js +++ b/routes/liquid/send.js @@ -86,9 +86,6 @@ sendLiquid = async ({ asset, amount, user, address, memo, tx, limit }) => { total += fee - covered; } - // get conversion fee - // 'total' refers to the total before the conversion fee - // (i.e. the total liquid bitcoin that leaves this server) var conversionFee = computeConversionFee(amount); if (limit && total > limit + fee) @@ -116,6 +113,8 @@ sendLiquid = async ({ asset, amount, user, address, memo, tx, limit }) => { conversionFee -= conversionFeeDeduction; } + if (asset !== btc) conversionFee = 0; + if (total > account.balance) { l.warn("amount exceeds balance", { total, |
