-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Dynamically load tokenlists for Orbit chains #2135
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
originChainID: ChainId.ArbitrumOne, | ||
url: 'https://tokenlist.arbitrum.io/ArbTokenLists/arbed_arb_whitelist_era.json', | ||
name: 'Arbitrum Whitelist Era', | ||
isDefault: true, | ||
logoURI: ArbitrumLogo | ||
}, | ||
{ | ||
id: 2, | ||
id: '2', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should unify the id syntax and use ${chain.chainId}_native
or ${chain.chainId}_uniswap
or _cmc
etc, then tighten the type
id: `${chain.chainId}_native`, | ||
originChainID: chain.chainId, | ||
url: `https://tokenlist.arbitrum.io/ArbTokenLists/${chain.chainId}_arbed_native_list.json`, | ||
name: `${chain.name} Arbed L2 native list`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a note: if the user has some local storage (visited the bridge before), these new lists seem to be off by default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Updated to
${chainName} default list
- Already happening in production, fixed in refactor: Remove useArbTokenBridge from store 1/3 #2088 to 2090
Summary
Steps to test