diff --git a/lib/new-config-manager.js b/lib/new-config-manager.js index 57cf1105..b06adf0e 100644 --- a/lib/new-config-manager.js +++ b/lib/new-config-manager.js @@ -54,6 +54,7 @@ const getGlobalLocale = it => getLocale(null, 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 getGlobalCashOut = fromNamespace(namespaces.CASH_OUT) const getOperatorInfo = fromNamespace(namespaces.OPERATOR_INFO) const getCoinAtmRadar = fromNamespace(namespaces.COIN_ATM_RADAR) const getTermsConditions = fromNamespace(namespaces.TERMS_CONDITIONS) @@ -118,5 +119,6 @@ module.exports = { getTermsConditions, getAllCryptoCurrencies, getTriggers, + getGlobalCashOut, getCashOut } diff --git a/lib/wallet.js b/lib/wallet.js index e8a4a06f..095a98df 100644 --- a/lib/wallet.js +++ b/lib/wallet.js @@ -122,7 +122,7 @@ function mergeStatusMode (a, b) { } 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 walletStatusPromise = fetchWallet(settings, tx.cryptoCode)