Merge pull request #906 from SiIky/fix/JyadZOrQ/fudge_factor

fix: fudge factor being ignored
This commit is contained in:
Rafael Taranto 2021-11-11 18:19:45 +00:00 committed by GitHub
commit 2f47643c6b
2 changed files with 3 additions and 1 deletions

View file

@ -54,6 +54,7 @@ const getGlobalLocale = it => getLocale(null, it)
const getWalletSettings = (key, it) => _.compose(fromNamespace(key), fromNamespace(namespaces.WALLETS))(it) const getWalletSettings = (key, it) => _.compose(fromNamespace(key), fromNamespace(namespaces.WALLETS))(it)
const getCashOut = (key, it) => _.compose(fromNamespace(key), fromNamespace(namespaces.CASH_OUT))(it) const getCashOut = (key, it) => _.compose(fromNamespace(key), fromNamespace(namespaces.CASH_OUT))(it)
const getGlobalCashOut = fromNamespace(namespaces.CASH_OUT)
const getOperatorInfo = fromNamespace(namespaces.OPERATOR_INFO) const getOperatorInfo = fromNamespace(namespaces.OPERATOR_INFO)
const getCoinAtmRadar = fromNamespace(namespaces.COIN_ATM_RADAR) const getCoinAtmRadar = fromNamespace(namespaces.COIN_ATM_RADAR)
const getTermsConditions = fromNamespace(namespaces.TERMS_CONDITIONS) const getTermsConditions = fromNamespace(namespaces.TERMS_CONDITIONS)
@ -118,5 +119,6 @@ module.exports = {
getTermsConditions, getTermsConditions,
getAllCryptoCurrencies, getAllCryptoCurrencies,
getTriggers, getTriggers,
getGlobalCashOut,
getCashOut getCashOut
} }

View file

@ -122,7 +122,7 @@ function mergeStatusMode (a, b) {
} }
function getWalletStatus (settings, tx) { function getWalletStatus (settings, tx) {
const fudgeFactorEnabled = configManager.getWalletSettings(tx.cryptoCode, settings.config).fudgeFactorActive const fudgeFactorEnabled = configManager.getGlobalCashOut(settings.config).fudgeFactorActive
const fudgeFactor = fudgeFactorEnabled ? 100 : 0 const fudgeFactor = fudgeFactorEnabled ? 100 : 0
const walletStatusPromise = fetchWallet(settings, tx.cryptoCode) const walletStatusPromise = fetchWallet(settings, tx.cryptoCode)