Skip to content

feat: add Eden (chain 714) to assets-controllers spot price support - #9874

Open
jeremytsng wants to merge 1 commit into
mainfrom
feat/tia-price-support-eden
Open

feat: add Eden (chain 714) to assets-controllers spot price support#9874
jeremytsng wants to merge 1 commit into
mainfrom
feat/tia-price-support-eden

Conversation

@jeremytsng

@jeremytsng jeremytsng commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Explanation

Eden (eip155:714, hex 0x2ca) is an EVM chain that settles gas in TIA and is not indexed by CoinGecko as an asset platform. Without an entry in SPOT_PRICES_SUPPORT_INFO, assets-controllers cannot resolve a spot price for its native asset.

This PR adds the Eden entry, pricing native TIA at the zero-address:

'0x2ca': 'eip155:714/erc20:0x0000000000000000000000000000000000000000', // Eden - Native symbol: TIA (Celestia)

This follows the pattern established for Forma (#8873): TIA has no SLIP-44 coin type, so the native asset is addressed at the zero-address rather than an invented slip44 reference. Price API support for this asset id ships in consensys-vertical-apps/va-mmcx-price-api#697; the Price API resolves it from the CoinGecko celestia coin through a chain-keyed native-asset registry, so Forma and Eden are priced independently.

Chain id verified against the live RPC: eth_chainId on rpc.eden.gateway.fm returns 0x2ca.

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

Note

Low Risk
Single additive registry entry and changelog note; no auth, data migration, or pricing logic changes beyond enabling one more chain.

Overview
Adds Eden (0x2ca / chain 714) to SPOT_PRICES_SUPPORT_INFO in codefi-v2.ts so assets-controllers can request spot prices for that network through the Codefi v2 price service.

Native gas is modeled as TIA via the zero-address CAIP-19 id (eip155:714/erc20:0x0…), matching chains like Forma where there is no SLIP-44 coin type. The new key also flows into SUPPORTED_CHAIN_IDS derived from that map. The package changelog documents the addition under Unreleased.

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

@jeremytsng
jeremytsng requested review from a team as code owners August 13, 2026 20:59
@jeremytsng
jeremytsng deployed to default-branch August 13, 2026 20:59 — with GitHub Actions Active
@jeremytsng
jeremytsng force-pushed the feat/tia-price-support-eden branch from 1208f60 to 6fcccaf Compare August 13, 2026 21:00
'0x144': 'eip155:324/slip44:60', // zkSync Era Mainnet (Ethereum L2) - Native symbol: ETH
'0x150': 'eip155:336/slip44:809', // Shiden - Native symbol: SDN
'0x169': 'eip155:361/slip44:589', // Theta Mainnet - Native symbol: TFUEL
'0x2ca': 'eip155:714/erc20:0x0000000000000000000000000000000000000000', // Eden - Native symbol: TIA (Celestia)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just double checking, is this supported by price API to fetch spot prices?

Seems to fail:
https://price.api.cx.metamask.io/v3/spot-prices?assetIds=eip155%3A714%2Ferc20%3A0x0000000000000000000000000000000000000000&vsCurrency=usd

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