Skip to content

chore: add DeFi Oracle Meta Mainnet to SPOT_PRICES_SUPPORT_INFO#9118

Open
defiQUG wants to merge 1 commit into
MetaMask:mainfrom
defiQUG:feat/chain138-spot-prices-support-info
Open

chore: add DeFi Oracle Meta Mainnet to SPOT_PRICES_SUPPORT_INFO#9118
defiQUG wants to merge 1 commit into
MetaMask:mainfrom
defiQUG:feat/chain138-spot-prices-support-info

Conversation

@defiQUG

@defiQUG defiQUG commented Jun 15, 2026

Copy link
Copy Markdown

Explanation

Chain 138 (DeFi Oracle Meta Mainnet / eip155:138) is a live EVM mainnet with public RPC and Blockscout explorer. Chain metadata is already merged on Chainlist: https://github.com/ethereum-lists/chains/blob/master/_data/chains/eip155-138.json

This PR adds the client fallback native asset mapping in SPOT_PRICES_SUPPORT_INFO so native ETH spot-price fallback works when the Price API supported-networks cache is cold — same pattern as #8627 (ZetaChain), #8973 (Arc), #8487 (Injective).

Hosted Price API network registration for eip155:138 is tracked separately with Consensys. DBIS operates a Codefi-compatible spot-prices v2 mirror for ISO-4217 compliant tokens:
https://explorer.d-bis.org/token-aggregation/api/v1/prices/metamask/v2/chains/138/spot-prices

assets-controllers

Added

  • Add DeFi Oracle Meta Mainnet (138/0x8a) to SPOT_PRICES_SUPPORT_INFO in codefi-v2.ts — native symbol ETH (slip44:60)

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

Test plan

  • yarn test packages/assets-controllers (or scoped token-prices-service tests)
  • validateChainIdSupported('0x8a') returns true when eip155:138 is present in supported networks OR fallback list

Made with Cursor

@defiQUG defiQUG requested review from a team as code owners June 15, 2026 06:42
Add chain 138 (0x8a) native ETH mapping so spot-price fallback works when
the Price API supported-networks cache is cold. Chain metadata is on
Chainlist (eip155-138.json).

Co-authored-by: Cursor <cursoragent@cursor.com>
@defiQUG defiQUG force-pushed the feat/chain138-spot-prices-support-info branch from 616c1be to b844ca8 Compare June 15, 2026 18:54
@defiQUG

defiQUG commented Jun 15, 2026

Copy link
Copy Markdown
Author

Rebased onto latest main (Release/1044.0.0) — conflicts resolved in `packages/assets-controllers/CHANGELOG.md` only. Branch is mergeable.

Chain metadata: https://github.com/ethereum-lists/chains/blob/master/_data/chains/eip155-138.json

Operator Codefi v2-compatible spot prices (until hosted registration): https://explorer.d-bis.org/token-aggregation/api/v1/prices/metamask/v2/chains/138/spot-prices

Consensys Price API registration request sent separately for eip155:138 on price.api.cx.metamask.io.

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