Commit 0ad6b67
feat: implement bridged asset canonical detection
Implements robust Ethereum canonical detection for bridged assets (WBTC, WETH, WSTETH, USDC, USDT, DAI).
- Add BRIDGED_CATEGORY_MAPPINGS for 6 Ethereum canonicals
- Implement three-way canonical detection via CoinGecko
- Prioritize CoinGecko over Zerion when Ethereum canonical detected
- Fix length <= 1 edge case to return canonical instead of undefined
- Merge USDT0 into USDT group via bridged-usdt category
- Deduplicate chain icons in grouped asset rows
Results:
- ETH WBTC/WETH/WSTETH/USDC/USDT are primaries (clean titles)
- All L2 bridged variants point to Ethereum canonicals
- USDT0 merged into USDT group
- No duplicate chain icons
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 (1M context) <[email protected]>1 parent bc5b2e5 commit 0ad6b67
File tree
4 files changed
+3
-4
lines changed- scripts/generateAssetData/generateRelatedAssetIndex
- src
- lib/asset-service/service
- state/migrations
4 files changed
+3
-4
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
349 | | - | |
| 349 | + | |
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| |||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
304 | 303 | | |
305 | 304 | | |
306 | 305 | | |
| |||
0 commit comments