From 8361c2d400145a13d9ba24299ceb7293e69d3d43 Mon Sep 17 00:00:00 2001 From: Adrien Hopkins Date: Thu, 16 Jun 2022 09:17:24 -0500 Subject: Separated Bitcoin and Liquid conversion fee credits --- routes/bitcoin/send.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routes/bitcoin/send.js') 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; } -- cgit v1.2.3