From 0c08f32ef40792249bf1c02f0b94e2d366156db1 Mon Sep 17 00:00:00 2001 From: Fernando Date: Fri, 30 Apr 2021 05:38:18 -0300 Subject: [PATCH] remove exponential back-off strategy for balance fetching (#2225) --- src/logic/tokens/store/actions/fetchSafeTokens.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/logic/tokens/store/actions/fetchSafeTokens.ts b/src/logic/tokens/store/actions/fetchSafeTokens.ts index 5f9a84db..545e3343 100644 --- a/src/logic/tokens/store/actions/fetchSafeTokens.ts +++ b/src/logic/tokens/store/actions/fetchSafeTokens.ts @@ -1,4 +1,3 @@ -import { backOff } from 'exponential-backoff' import { List } from 'immutable' import { Dispatch } from 'redux' @@ -60,9 +59,10 @@ export const fetchSafeTokens = (safeAddress: string, currencySelected?: string) } const selectedCurrency = currentCurrencySelector(state) - const tokenCurrenciesBalances = await backOff(() => - fetchTokenCurrenciesBalances({ safeAddress, selectedCurrency: currencySelected ?? selectedCurrency }), - ) + const tokenCurrenciesBalances = await fetchTokenCurrenciesBalances({ + safeAddress, + selectedCurrency: currencySelected ?? selectedCurrency, + }) const { balances, ethBalance, tokens } = tokenCurrenciesBalances.items.reduce( extractDataFromResult,