fix: add feeMultiplier parameter
This commit is contained in:
parent
418668d232
commit
c838839522
2 changed files with 3 additions and 2 deletions
|
|
@ -80,7 +80,7 @@ function sendCoins (account, tx, settings, operatorId, feeMultiplier) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function sendCoinsBatch (account, txs, cryptoCode) {
|
function sendCoinsBatch (account, txs, cryptoCode, feeMultiplier) {
|
||||||
return checkCryptoCode(cryptoCode)
|
return checkCryptoCode(cryptoCode)
|
||||||
.then(() => calculateFeeDiscount(feeMultiplier))
|
.then(() => calculateFeeDiscount(feeMultiplier))
|
||||||
.then(newFee => fetch('settxfee', [newFee]))
|
.then(newFee => fetch('settxfee', [newFee]))
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,8 @@ function sendCoins (settings, tx) {
|
||||||
function sendCoinsBatch (settings, txs, cryptoCode) {
|
function sendCoinsBatch (settings, txs, cryptoCode) {
|
||||||
return fetchWallet(settings, cryptoCode)
|
return fetchWallet(settings, cryptoCode)
|
||||||
.then(r => {
|
.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 => {
|
.then(res => {
|
||||||
mem.clear(module.exports.balance)
|
mem.clear(module.exports.balance)
|
||||||
return res
|
return res
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue