fix: add feeMultiplier parameter

This commit is contained in:
Sérgio Salgado 2022-02-03 19:10:19 +00:00
parent 418668d232
commit c838839522
2 changed files with 3 additions and 2 deletions

View file

@ -82,7 +82,8 @@ function sendCoins (settings, tx) {
function sendCoinsBatch (settings, txs, cryptoCode) {
return fetchWallet(settings, cryptoCode)
.then(r => {
return r.wallet.sendCoinsBatch(r.account, txs, cryptoCode)
const feeMultiplier = settings[`wallets_${tx.cryptoCode}_feeMultiplier`]
return r.wallet.sendCoinsBatch(r.account, txs, cryptoCode, feeMultiplier)
.then(res => {
mem.clear(module.exports.balance)
return res