Skip to content

feat: add Injective Mainnet to Price API supported chains#8487

Merged
jeremy-consensys merged 1 commit intomainfrom
fix/injective-price-api-support
Apr 22, 2026
Merged

feat: add Injective Mainnet to Price API supported chains#8487
jeremy-consensys merged 1 commit intomainfrom
fix/injective-price-api-support

Conversation

@jeremy-consensys
Copy link
Copy Markdown
Contributor

@jeremy-consensys jeremy-consensys commented Apr 16, 2026

Explanation

Injective Mainnet (chain 0x6f0 / 1776) is missing from SPOT_PRICES_SUPPORT_INFO in assets-controllers. validateChainIdSupported('0x6f0') therefore returns false, so Extension and Mobile never call the Price API for any Injective token (native or ERC20). The wallet UI shows "no conversion rate available" for INJ and every Injective ERC20 (USDT, wETH, USDC, ATOM, TIA, stINJ).

This PR adds '0x6f0': 'eip155:1776/slip44:22000119' to SPOT_PRICES_SUPPORT_INFO — INJ's CAIP-19 asset identifier already exists in va-mmcx-price-api's slip44 map. Same one-line pattern as #7939 (Chiliz, Plasma).

The it.each(SUPPORTED_CHAIN_IDS) test at src/token-prices-service/codefi-v2.test.ts:1762 automatically covers the new entry.

The Injective EVM ERC20 contracts must also be wired up server-side in the Price API — that work lives in the companion PR (link below). Without it, this change unblocks native INJ but ERC20 prices still come back empty.

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
Low risk: adds a single Injective chainId-to-CAIP-19 mapping and a changelog entry, with no behavior changes beyond enabling Price API lookups for that chain.

Overview
Enables Price API spot-price support for Injective Mainnet by adding chain 0x6f0eip155:1776/slip44:22000119 to SPOT_PRICES_SUPPORT_INFO, allowing native INJ (and price requests on that chain) to pass support validation.

Updates the assets-controllers changelog to announce the new Injective native token Price API support.

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

@jeremy-consensys jeremy-consensys force-pushed the fix/injective-price-api-support branch from 5ac89ad to dffc07d Compare April 16, 2026 13:24
@jeremy-consensys jeremy-consensys marked this pull request as ready for review April 17, 2026 03:05
@jeremy-consensys jeremy-consensys requested review from a team as code owners April 17, 2026 03:05
@jeremy-consensys jeremy-consensys force-pushed the fix/injective-price-api-support branch 2 times, most recently from b4801ee to 8330430 Compare April 20, 2026 14:15
Comment thread packages/assets-controllers/src/token-prices-service/codefi-v2.ts
Comment thread packages/assets-controllers/CHANGELOG.md
Add chain 1776 (Injective Mainnet, native symbol INJ, slip44:22000119)
to SPOT_PRICES_SUPPORT_INFO so clients request spot prices for Injective
tokens from the Price API.
@jeremy-consensys jeremy-consensys force-pushed the fix/injective-price-api-support branch from 8330430 to dfc10f2 Compare April 22, 2026 05:22
@jeremy-consensys jeremy-consensys added this pull request to the merge queue Apr 22, 2026
Merged via the queue into main with commit f833a02 Apr 22, 2026
357 of 358 checks passed
@jeremy-consensys jeremy-consensys deleted the fix/injective-price-api-support branch April 22, 2026 05:28
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.

3 participants