1
1
import { getVersionUpgrade , VersionUpgrade } from '@uniswap/token-lists'
2
2
import { useWeb3React } from '@web3-react/core'
3
- import { DEFAULT_LIST_OF_LISTS , UNSUPPORTED_LIST_URLS } from 'constants/lists'
3
+ import { DEFAULT_LIST_OF_LISTS } from 'constants/lists'
4
4
import TokenSafetyLookupTable from 'constants/tokenSafetyLookup'
5
5
import { useStateRehydrated } from 'hooks/useStateRehydrated'
6
6
import useInterval from 'lib/hooks/useInterval'
@@ -32,7 +32,7 @@ export default function Updater(): null {
32
32
if ( ! isWindowVisible ) return
33
33
DEFAULT_LIST_OF_LISTS . forEach ( ( url ) => {
34
34
// Skip validation on unsupported lists
35
- const isUnsupportedList = UNSUPPORTED_LIST_URLS . includes ( url )
35
+ const isUnsupportedList = false
36
36
fetchList ( url , isUnsupportedList ) . catch ( ( error ) => console . debug ( 'interval list fetching error' , error ) )
37
37
} )
38
38
} , [ fetchList , isWindowVisible ] )
@@ -50,14 +50,6 @@ export default function Updater(): null {
50
50
fetchList ( listUrl ) . catch ( ( error ) => console . debug ( 'list added fetching error' , error ) )
51
51
}
52
52
} )
53
- UNSUPPORTED_LIST_URLS . forEach ( ( listUrl ) => {
54
- const list = lists [ listUrl ]
55
- if ( ! list || ( ! list . current && ! list . loadingRequestId && ! list . error ) ) {
56
- fetchList ( listUrl , /* isUnsupportedList= */ true ) . catch ( ( error ) =>
57
- console . debug ( 'list added fetching error' , error )
58
- )
59
- }
60
- } )
61
53
} , [ dispatch , fetchList , lists , rehydrated ] )
62
54
63
55
// automatically update lists for every version update
0 commit comments