From 63a5e83390637ff0240aa87e803accc81d4cc73d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20S=C3=A1?= Date: Wed, 27 Oct 2021 18:03:29 +0100 Subject: [PATCH] fix: fudge factor being ignored --- lib/new-config-manager.js | 2 ++ lib/wallet.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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)