remove exponential back-off strategy for balance fetching (#2225)

This commit is contained in:
Fernando 2021-04-30 05:38:18 -03:00 committed by GitHub
parent ee6ef82e31
commit 0c08f32ef4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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<ExtractedData>(
extractDataFromResult,