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 { List } from 'immutable'
|
||||||
import { Dispatch } from 'redux'
|
import { Dispatch } from 'redux'
|
||||||
|
|
||||||
|
@ -60,9 +59,10 @@ export const fetchSafeTokens = (safeAddress: string, currencySelected?: string)
|
||||||
}
|
}
|
||||||
const selectedCurrency = currentCurrencySelector(state)
|
const selectedCurrency = currentCurrencySelector(state)
|
||||||
|
|
||||||
const tokenCurrenciesBalances = await backOff(() =>
|
const tokenCurrenciesBalances = await fetchTokenCurrenciesBalances({
|
||||||
fetchTokenCurrenciesBalances({ safeAddress, selectedCurrency: currencySelected ?? selectedCurrency }),
|
safeAddress,
|
||||||
)
|
selectedCurrency: currencySelected ?? selectedCurrency,
|
||||||
|
})
|
||||||
|
|
||||||
const { balances, ethBalance, tokens } = tokenCurrenciesBalances.items.reduce<ExtractedData>(
|
const { balances, ethBalance, tokens } = tokenCurrenciesBalances.items.reduce<ExtractedData>(
|
||||||
extractDataFromResult,
|
extractDataFromResult,
|
||||||
|
|
Loading…
Reference in New Issue