feat: enable spot-prices v3
Description
Enable spot prices v3 by removing patch forcing a fallback.
Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/ASSETS-1746
Manual testing steps
Feature: my feature name
Scenario: user [verb for user action]
Given [describe expected initial app state]
When user [verb for user action]
Then [describe expected outcome]
Screenshots/Recordings
Before
After
Pre-merge author checklist
- [X] I’ve followed MetaMask Contributor Docs and MetaMask Mobile Coding Standards.
- [X] I've completed the PR template to the best of my ability
- [X] I’ve included tests if applicable
- [X] I’ve documented my code using JSDoc format if applicable
- [X] I’ve applied the right labels on the PR (see labeling guidelines). Not required for external contributors.
Pre-merge reviewer checklist
- [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.
[!NOTE] Removes the local patch and uses upstream
@metamask/assets-controllers, enabling spot-prices v3.
- Dependencies:
- Switch
@metamask/assets-controllersfrom a local Yarn patch to upstream (^93.0.0), resolving to93.1.0inyarn.lock.- Build/Config:
- Delete patch file at
.yarn/patches/@metamask-assets-controllers-npm-93.0.0-*.patch.- Update
yarn.lockto remove patched entries and reflect upstream package resolution.Written by Cursor Bugbot for commit f9ab2d4b4e0de0ffb5ff4caeba35ebf63ac63b0a. This will update automatically on new commits. Configure here.
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.
🔍 Smart E2E Test Selection
- Selected E2E tags: SmokeAssets, SmokeSwaps, SmokeTrade, SmokeStake, SmokeWalletPlatform, SmokeCore, SmokeRamps
- Risk Level: high
- AI Confidence: 85%
click to see 🤖 AI reasoning details
This PR removes a patch from @metamask/assets-controllers that was disabling native token price support (SPOT_PRICES_SUPPORT_INFO CAIP-19 mappings) for almost all major EVM networks including Ethereum, Polygon, Arbitrum, Base, Optimism, Avalanche, Linea, zkSync, and many others.
By removing this patch and upgrading to the unpatched 93.1.0 version, native token prices will now be fetched using the Prices API V3 with proper CAIP-19 asset mappings. This is a significant change affecting:
- Token pricing across the app - TokenRatesController and marketData used throughout
- Asset display - Token list items showing price percentage changes (useTokenPricePercentageChange)
- Swaps functionality - QuotesView and useFiatConversionRates rely on token prices
- Staking - StakingBalance component uses token price percentage hooks
- Fiat conversions - Any feature converting token values to fiat
- Multi-chain support - Affects all major EVM networks
Selected tags cover:
- SmokeAssets: Token display and price functionality
- SmokeSwaps/SmokeTrade: Swap functionality relies on accurate price data
- SmokeStake: Staking balance displays use price hooks
- SmokeWalletPlatform: Core wallet functionality with token values
- SmokeCore: Fundamental app state involving controllers
- SmokeRamps: On/off ramp features may display fiat values
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code