token-lists
token-lists copied to clipboard
Optimism token list shows duplicates of each token
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.
Looking at the tokenlist.json: https://static.optimism.io/optimism.tokenlist.json It does appear there are tokens with chainId other than 10.
@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.
@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.