token-lists icon indicating copy to clipboard operation
token-lists copied to clipboard

Optimism token list shows duplicates of each token

Open samajammin opened this issue 2 years ago • 2 comments

When I navigate to the Optimism list: https://tokenlists.org/token-list?url=https://static.optimism.io/optimism.tokenlist.json

I see 4 of each major token. It seems like some logic with the filtering is broken - it appears this contains the contract addresses for a token on Ethereum, Optimism, Optimistic Kovan and Kovan. Image 2022-04-11 at 7 56 25 AM

Looking at the tokenlist.json: https://static.optimism.io/optimism.tokenlist.json It does appear there are tokens with chainId other than 10.

samajammin avatar Apr 11 '22 14:04 samajammin

@samajammin this is because optimism's list is showing the tokens deployed across networks—your issue highlights an issue with the current list format. I've opened issue #130 to (hopefully!) address this otherwise people may need to roll-their-own token list format as multi-network tokens become the norm.

carlfairclough avatar May 20 '22 13:05 carlfairclough

@samajammin The specific issue you called out should now be fixed on the Token Lists site with this PR 1439.

@carlfairclough We also just rolled out a new package to convert token lists to the multi-chain format outlined here.

akarys92 avatar Jun 23 '22 22:06 akarys92