Skip to content

Fix XRPL EVM chain icons (1440000 / 1449000 / 1449900)#2845

Open
vriveraPeersyst wants to merge 2 commits into
DefiLlama:mainfrom
vriveraPeersyst:fix-xrpl-evm-chain-icons
Open

Fix XRPL EVM chain icons (1440000 / 1449000 / 1449900)#2845
vriveraPeersyst wants to merge 2 commits into
DefiLlama:mainfrom
vriveraPeersyst:fix-xrpl-evm-chain-icons

Conversation

@vriveraPeersyst

@vriveraPeersyst vriveraPeersyst commented Jun 15, 2026

Copy link
Copy Markdown

Problem

XRPL EVM Mainnet (1440000), Testnet (1449000) and Devnet (1449900) all render the default /unknown-logo.png instead of the XRPL EVM logo.

Root cause

ChainList builds the chain logo from constants/chainIds.js (the chain slug), not from the icon metadata field:

// components/chain/index.js (and the chain/add-network pages)
const icon = chain.chainSlug
  ? `https://icons.llamao.fi/icons/chains/rsz_${chain.chainSlug}.jpg`
  : "/unknown-logo.png";
  • 1440000 had slug xrpl_evmrsz_xrpl_evm.jpg returns 404.
  • 1449000 / 1449900 had no chainIds.js entry → chainSlug is undefined → falls back to /unknown-logo.png.

The real CDN files are rsz_xrpl-evm.jpg / rsz_xrpl%20evm.jpg (both HTTP 200). DefiLlama's own chain name for 1440000 is XRPL EVM (api.llama.fi/chains), and the chainIds.js convention is the DefiLlama name lowercased with spaces preserved (e.g. nova network, x layer, zksync era).

Fix

constants/chainIds.js:

  • 1440000: xrpl_evmxrpl evm — matches DefiLlama's chain name, so it fixes the icon and restores the TVL lookup.
  • 1449900: add xrpl-evm (devnet icon).
  • 1449000: add xrpl-evm (testnet icon; the hyphen intentionally differs from xrpl evm so the testnets don't falsely inherit the mainnet's TVL).

Also aligns the 1440000 override icon field with ethereum-lists (xrplevm) for API/data consistency — no display impact.

Verification

rsz_xrpl%20evm.jpg  -> 200   (1440000)
rsz_xrpl-evm.jpg    -> 200   (1449900, 1449000)

node tests/check-duplicate-keys.js passes.

🤖 Generated with Claude Code

ChainList renders chain logos from the `constants/chainIds.js` slug
(`https://icons.llamao.fi/icons/chains/rsz_${chainSlug}.jpg`), not from
the ethereum-lists / override `icon` field. The XRPL EVM entries were
broken:

- 1440000 used slug `xrpl_evm` -> rsz_xrpl_evm.jpg returns 404
- 1440002 / 1449000 had no slug at all -> fell back to /unknown-logo.png

Fix the slugs to match DefiLlama's registered icon files:

- 1440000: `xrpl_evm` -> `xrpl evm` (matches DefiLlama chain name, so it
  also restores the TVL lookup)
- 1440002: add `xrpl-evm` (devnet icon)
- 1449000: add `xrpl-evm` (testnet icon; hyphen avoids falsely matching
  the mainnet's TVL)

Also align the mainnet override `icon` field with ethereum-lists
(`xrplevm`) for API/data consistency.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vriveraPeersyst vriveraPeersyst changed the title Fix XRPL EVM chain icons (1440000 / 1440002 / 1449000) Fix XRPL EVM chain icons (1440000 / 1449000 / 1449900) Jun 18, 2026
The devnet entry used the old chain id 1440002. Update it to 1449900
so the icon slug resolves against the correct chain.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vriveraPeersyst vriveraPeersyst force-pushed the fix-xrpl-evm-chain-icons branch from 9e49527 to e0a297e Compare June 18, 2026 11:18
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.

2 participants