diff options
| author | Adrien Hopkins <[email protected]> | 2022-06-16 09:17:24 -0500 |
|---|---|---|
| committer | Adrien Hopkins <[email protected]> | 2022-06-16 09:17:24 -0500 |
| commit | 8361c2d400145a13d9ba24299ceb7293e69d3d43 (patch) | |
| tree | 9d8c41deafebd231f126c3d8558d42f6fc0df1e4 /routes/bitcoin/send.js | |
| parent | a9caa15ac75a6ce2939ffd90a0a2040434095d84 (diff) | |
| download | coinos-server-8361c2d400145a13d9ba24299ceb7293e69d3d43.tar.gz coinos-server-8361c2d400145a13d9ba24299ceb7293e69d3d43.zip | |
Separated Bitcoin and Liquid conversion fee credits
Diffstat (limited to 'routes/bitcoin/send.js')
| -rw-r--r-- | routes/bitcoin/send.js | 4 |
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; } |
