Skip to content

Commit 7a6f88a

Browse files
committed
fix chains names
1 parent 19f0332 commit 7a6f88a

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

src/utils/normalizeChain.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@ export const normalizedChainReplacements = {
44
kucoin: "kcc",
55
//gnosis: "xdai",
66
"terra%20classic": "terra",
7+
"terra classic": "terra",
78
sxnetwork: "sx",
89
"arbitrum%20nova": "arbitrum_nova",
910
ethereumpow: "ethpow",
1011
"milkomeda%20c1": "milkomeda",
1112
shimmerevm: "shimmer_evm",
13+
"shimmer evm": "shimmer_evm",
14+
"shimmer_evm": "shimmer_evm",
1215
"world%20chain": "wc",
16+
"world chain": "wc",
1317
"x%20layer": "xlayer",
18+
"x layer": "xlayer",
1419
zetachain: "zeta",
1520
x_layer: "xlayer",
1621
worldchain: "wc",
@@ -21,6 +26,8 @@ export const normalizedChainReplacements = {
2126
cronosevm: "cronos",
2227
coredao: "core",
2328
rari_chain: "rari",
29+
"rari chain": "rari",
30+
"plume mainnet": "plume",
2431
astar_zkevm: "astar_zkevm",
2532
} as {
2633
[chain: string]: string;
@@ -1346,9 +1353,13 @@ export function getChainDisplayName(normalizedChain: string, useNewChainNames: b
13461353
case "ripple":
13471354
return "Ripple";
13481355
case "arbitrum_nova":
1356+
case "arbitrum nova":
13491357
return "Arbitrum Nova";
13501358
case "gravity_bridge":
1359+
case "gravity bridge":
13511360
return "Gravity Bridge";
1361+
case "ebi":
1362+
return "EBI";
13521363
case "kujira":
13531364
return "Kujira";
13541365
case "injective":
@@ -1380,6 +1391,16 @@ export function getChainDisplayName(normalizedChain: string, useNewChainNames: b
13801391
case "astar_zkevm":
13811392
case "astar zkevm":
13821393
return "Astar zkEVM";
1394+
case "polygon_zkevm":
1395+
case "polygon zkevm":
1396+
case "polygonzkevm":
1397+
return "Polygon zkEVM";
1398+
case "cronos_zkevm":
1399+
case "cronos zkevm":
1400+
return "Cronos zkEVM";
1401+
case "immutable_zkevm":
1402+
case "immutable zkevm":
1403+
return "Immutable zkEVM";
13831404
case "sui":
13841405
return "Sui";
13851406
case "solana":
@@ -1402,6 +1423,9 @@ export function getChainDisplayName(normalizedChain: string, useNewChainNames: b
14021423
return "opBNB";
14031424
case "taiko":
14041425
return "Taiko";
1426+
case "mc":
1427+
case "merit circle":
1428+
return "Merit Circle";
14051429
case "ape_chain":
14061430
return "Ape Chain";
14071431
case "cronos_zkevm":
@@ -1451,6 +1475,21 @@ export function getChainDisplayName(normalizedChain: string, useNewChainNames: b
14511475
return "Scroll";
14521476
case "linea":
14531477
return "Linea";
1478+
case "ux chain":
1479+
case "ux_chain":
1480+
return "UX Chain";
1481+
case "zero network":
1482+
case "zero_network":
1483+
return "Zero Network";
1484+
case "zkpolygon":
1485+
return "Polygon zkEVM";
1486+
case "shimmer_evm":
1487+
case "shimmer evm":
1488+
return "ShimmerEVM";
1489+
case "rari":
1490+
case "rari chain":
1491+
case "rari_chain":
1492+
return "RARI Chain";
14541493
default:
14551494
return normalizedChain.slice(0, 1).toUpperCase() + normalizedChain.slice(1); // Capitalize first letter
14561495
}

0 commit comments

Comments
 (0)