remove exponential back-off strategy for balance fetching (#2225)
This commit is contained in:
parent
ee6ef82e31
commit
0c08f32ef4
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue