We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cd7c3e commit 668b5f9Copy full SHA for 668b5f9
src/common/utils/tokenList.ts
@@ -54,13 +54,16 @@ const loadTokenlistsFromFiles = () => {
54
55
Promise.all(
56
Object.keys(RPC_URLS).map(async (chainId) => {
57
+ if (chainId === "1") return
58
const response = await fetch(`${tokenlistURL}?chainId=${chainId}`)
59
if (!response.ok) {
60
throw new Error(`Failed fetching tokenlist for chain ${chainId}`)
61
}
62
cache[Number(chainId)] = (await response.json()) as TokenListItem[]
63
}),
64
)
65
+
66
+ // setTimeout(buildCache, Number(process.env.TOKENLIST_CACHE_TIMEOUT_SECONDS || 10) * 1000)
67
})()
68
69
export default function getTokenList(chainId: number): TokenListItem[] {
0 commit comments