chore: add DeFi Oracle Meta Mainnet to SPOT_PRICES_SUPPORT_INFO#9118
Open
defiQUG wants to merge 1 commit into
Open
chore: add DeFi Oracle Meta Mainnet to SPOT_PRICES_SUPPORT_INFO#9118defiQUG wants to merge 1 commit into
defiQUG wants to merge 1 commit into
Conversation
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>
616c1be to
b844ca8
Compare
Author
|
Rebased onto latest 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.jsonThis PR adds the client fallback native asset mapping in
SPOT_PRICES_SUPPORT_INFOso 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:138is 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-pricesassets-controllers
Added
138/0x8a) toSPOT_PRICES_SUPPORT_INFOincodefi-v2.ts— native symbol ETH (slip44:60)References
eip155-138.jsonSPOT_PRICES_SUPPORT_INFO#8627, feat: add Injective Mainnet to Price API supported chains #8487, feat: add ARC mainnet to asset controller #8973Checklist
Test plan
yarn test packages/assets-controllers(or scoped token-prices-service tests)validateChainIdSupported('0x8a')returns true wheneip155:138is present in supported networks OR fallback listMade with Cursor