Skip to content

Commit 668b5f9

Browse files
committed
fix mainnet sync
1 parent 6cd7c3e commit 668b5f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/common/utils/tokenList.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,16 @@ const loadTokenlistsFromFiles = () => {
5454

5555
Promise.all(
5656
Object.keys(RPC_URLS).map(async (chainId) => {
57+
if (chainId === "1") return
5758
const response = await fetch(`${tokenlistURL}?chainId=${chainId}`)
5859
if (!response.ok) {
5960
throw new Error(`Failed fetching tokenlist for chain ${chainId}`)
6061
}
6162
cache[Number(chainId)] = (await response.json()) as TokenListItem[]
6263
}),
6364
)
65+
66+
// setTimeout(buildCache, Number(process.env.TOKENLIST_CACHE_TIMEOUT_SECONDS || 10) * 1000)
6467
})()
6568

6669
export default function getTokenList(chainId: number): TokenListItem[] {

0 commit comments

Comments
 (0)