Skip to content

chore: add missing native asset (erc20:0x0) icons and metadata - #1905

Open
maxime-oe wants to merge 4 commits into
masterfrom
chore/add-missing-erc20-0x0-native-icons
Open

chore: add missing native asset (erc20:0x0) icons and metadata#1905
maxime-oe wants to merge 4 commits into
masterfrom
chore/add-missing-erc20-0x0-native-icons

Conversation

@maxime-oe

@maxime-oe maxime-oe commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Cross-references the SPOT_PRICES_SUPPORT_INFO map in MetaMask Core's codefi-v2.ts against the extension's per-chain native token icons (CHAIN_ID_TOKEN_IMAGE_MAP in shared/constants/network.ts) to backfill 21 chains whose native asset uses the erc20:0x0000...0000 fallback addressing (no clean/official slip44 identifier) and was missing from this repo.

Follow-up to the slip44-addressed native assets added in #1898/#1900.

  • Chains whose native asset is ETH reuse the existing generic ETH icon.
  • Chains with a distinct native asset (LYX, XDAI, OKB, GHO, FRAX, USDT0, XPL, APE, EDU, XTZ, NXPC, BERA, CHZ, PLUME, XRP) use that asset's icon from metamask-extension's app/images.
  • Katana (eip155:747474) uses its distinct branded icon even though its native currency symbol is ETH, matching the extension's own CHAIN_ID_TOKEN_IMAGE_MAP choice for that chain.
  • Fraxtal (eip155:252) uses app/images/frax.svg: the extension's FRAX_NATIVE_TOKEN_IMAGE_URL constant points at a frax-native.svg that no longer exists in its source tree (likely a stale rename), so the current frax.svg was used instead.

Left unhandled (no matching native token icon in metamask-extension): Fuse Mainnet (122, only present in the separate network-logo map, not the token-icon map), inEVM Mainnet (2525), ICB Network (73115), Pepe Unchained Mainnet (97741), Forma (984122).

No existing files were modified or removed.


Note

Low Risk
Additive-only static icon and metadata files with no logic, auth, or data-handling changes.

Overview
Backfills 21 missing native-asset icons and metadata for chains that address their native token via erc20:0x000…000 (or slip44:60 for ETH-native chains), following earlier slip44 native-asset additions.

Adds SVG logos plus matching metadata for assets including XDAI, XRP, OKB, GHO, FRAX, APE, EDU, LYX, XTZ, NXPC, BERA, CHZ, XPL, USDT0, PLUME, and ETH on several L2s. ETH-native chains reuse the generic ETH icon; Katana keeps its branded icon despite an ETH symbol. No existing files are changed.

Reviewed by Cursor Bugbot for commit bfd313e. Bugbot is set up for automated code reviews on this repo. Configure here.

Cross-references the SPOT_PRICES_SUPPORT_INFO map in MetaMask Core's
codefi-v2.ts against the extension's per-chain native token icons
(CHAIN_ID_TOKEN_IMAGE_MAP in shared/constants/network.ts) to backfill
21 chains whose native asset uses the erc20:0x0000...0000 fallback
addressing (no clean/official slip44 identifier) and was missing from
this repo.

Follow-up to the slip44-addressed native assets added in #1898/#1900.

- Chains whose native asset is ETH reuse the existing generic ETH icon.
- Chains with a distinct native asset (LYX, XDAI, OKB, GHO, FRAX,
  USDT0, XPL, APE, EDU, XTZ, NXPC, BERA, CHZ, PLUME, XRP) use that
  asset's icon from metamask-extension's app/images.
- Katana (eip155:747474) uses its distinct branded icon even though
  its native currency symbol is ETH, matching the extension's own
  CHAIN_ID_TOKEN_IMAGE_MAP choice for that chain.
- Fraxtal (eip155:252) uses app/images/frax.svg: the extension's
  FRAX_NATIVE_TOKEN_IMAGE_URL constant points at a frax-native.svg
  that no longer exists in its source tree (likely a stale rename),
  so the current frax.svg was used instead.

Left unhandled (no matching native token icon in metamask-extension):
Fuse Mainnet (122, only present in the separate network-logo map, not
the token-icon map), inEVM Mainnet (2525), ICB Network (73115), Pepe
Unchained Mainnet (97741), Forma (984122).

No existing files were modified or removed.
@maxime-oe
maxime-oe requested review from a team and MRabenda as code owners August 12, 2026 06:32
Comment thread metadata/eip155:4326/erc20:0x0000000000000000000000000000000000000000.json Outdated
…hain icon

The erc20:0x0000...0000 fallback in codefi-v2.ts is only meaningful
when a chain has no clean/official slip44 id. Chains whose native
asset is plain ETH always have one (slip44:60), so address them that
way instead, matching every other ETH-native chain in this repo:

- eip155:1868 (Soneium), eip155:2741 (Abstract), eip155:43111 (Hemi),
  eip155:60808 (BOB), eip155:747474 (Katana): moved from erc20:0x0 to
  slip44:60, reusing the repo's existing generic Ether icon/name/symbol
  convention instead of the one-off files added previously.
- eip155:4326 (MegaETH Mainnet): dropped entirely — it already had a
  slip44:60 entry from the earlier slip44 batch (#1898), so the
  erc20:0x0 entry added in the previous commit was a duplicate.

Also replaces the Apechain (eip155:33139) native asset icon: the
previous icon (app/images/ape.svg from metamask-extension) is a
433x105 wordmark, not a square coin icon. Reused the square, circular
ApeCoin logo already established for the ERC20 entry on Ethereum
mainnet (eip155:1/erc20:0x4d22...594381), same APE brand.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 1a33124. Configure here.

<rect width="300" height="300" fill="white" transform="translate(30 30)"/>
</clipPath>
</defs>
</svg>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Katana native icon replaced incorrectly

Medium Severity

Katana’s distinct branded native icon was replaced with the generic ETH diamond under slip44:60. The PR intends Katana (eip155:747474) to keep its branded native asset artwork even though the currency symbol is ETH, matching the extension’s CHAIN_ID_TOKEN_IMAGE_MAP choice. Users on Katana will now see the wrong native token icon.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 1a33124. Configure here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's supposed to be ETH

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

The icon reused for eip155:33139's erc20:0x0 entry (borrowed from the
Ethereum mainnet APE ERC-20) was an ape-skull mark, not the ApeChain
brand's current gorilla-silhouette icon used elsewhere for this asset
(matches the icon now shipped in metamask-extension/metamask-mobile).
Rebuild from ApeChain's own partner launch template (gorilla mark +
brand blue), square background, matching the same icon just applied
in metamask-extension.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant