fix: rename fudge factor and change value

This commit is contained in:
Taranto 2020-05-06 22:21:39 +01:00 committed by Josh Harvey
parent 35aa0a058d
commit 6e9feb6be4

View file

@ -122,8 +122,8 @@ function mergeStatusMode (a, b) {
}
function getWalletStatus (settings, tx) {
const fudgeFactorEnabled = configManager.unscoped(settings.config).fudgeFactor
const fudgeFactor = fudgeFactorEnabled ? 10 : 0
const fudgeFactorEnabled = configManager.unscoped(settings.config).fudgeFactorActive
const fudgeFactor = fudgeFactorEnabled ? 100 : 0
const walletStatusPromise = fetchWallet(settings, tx.cryptoCode)
.then(r => r.wallet.getStatus(r.account, tx.toAddress, tx.cryptoAtoms.minus(fudgeFactor), tx.cryptoCode))