aboutsummaryrefslogtreecommitdiffstats
path: root/routes/bitcoin/send.js
diff options
context:
space:
mode:
Diffstat (limited to 'routes/bitcoin/send.js')
-rw-r--r--routes/bitcoin/send.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/routes/bitcoin/send.js b/routes/bitcoin/send.js
index a566c6f0..884c0db1 100644
--- a/routes/bitcoin/send.js
+++ b/routes/bitcoin/send.js
@@ -67,9 +67,9 @@ module.exports = ah(async (req, res) => {
}
// use user's credits to reduce fee, if available
- let conversionFeeDeduction = Math.min(account.fee_credits, conversionFee);
+ let conversionFeeDeduction = Math.min(account.btc_credits, conversionFee);
if (conversionFeeDeduction) {
- await account.decrement({ fee_credits: conversionFeeDeduction }, { transaction });
+ await account.decrement({ btc_credits: conversionFeeDeduction }, { transaction });
await account.reload({ transaction });
conversionFee -= conversionFeeDeduction;
}