diff options
Diffstat (limited to 'routes/bitcoin')
| -rw-r--r-- | routes/bitcoin/send.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/bitcoin/send.js b/routes/bitcoin/send.js index efcedb38..a9c95b31 100644 --- a/routes/bitcoin/send.js +++ b/routes/bitcoin/send.js @@ -68,11 +68,11 @@ module.exports = ah(async (req, res) => { } // use user's credits to reduce fee, if available - console.log(account.fee_credits); let withdrawalFeeDeduction = Math.min(account.fee_credits, withdrawalFee); if (withdrawalFeeDeduction) { await account.decrement({ fee_credits: withdrawalFeeDeduction }, { transaction }); await account.reload({ transaction }); + withdrawalFee -= withdrawalFeeDeduction; } await account.decrement({ balance: (total + withdrawalFee) }, { transaction }); |
