Skip to content

Commit be7e45d

Browse files
maxime-oeclaude
andauthored
fix: use slip44:5042 for Arc's native USDC now that it has a real SLI… (#9681)
…P-44 entry Arc (eip155:5042) was enabled before its native asset (USDC) had a SLIP-44 registry entry, so it used the erc20:0x0 zero-address placeholder in SPOT_PRICES_SUPPORT_INFO. The Arc team has since registered slip44:5042 for it. ## Explanation <!-- Thanks for your contribution! Take a moment to answer these questions so that reviewers have the information they need to properly understand your changes: * What is the current state of things and why does it need to change? * What is the solution your changes offer and how does it work? * Are there any changes whose purpose might not obvious to those unfamiliar with the domain? * If your primary goal was to update one package but you found you had to update another one along the way, why did you do so? * If you had to upgrade a dependency, why did you do so? --> ## References <!-- Are there any issues that this pull request is tied to? Are there other links that reviewers should consult to understand these changes better? Are there client or consumer pull requests to adopt any breaking changes? For example: * Fixes #12345 * Related to #67890 --> ## 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](https://github.com/MetaMask/core/tree/main/docs/processes/updating-changelogs.md) - [ ] I've introduced [breaking changes](https://github.com/MetaMask/core/tree/main/docs/processes/breaking-changes.md) in this PR and have prepared draft pull requests for clients and consumer packages to resolve them <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Single mapping correction for Arc in the CodeFi v2 spot-prices table; no auth, data migration, or broad logic changes. > > **Overview** > Updates Arc’s **native asset identifier** in `SPOT_PRICES_SUPPORT_INFO` (`codefi-v2.ts`) from the temporary `erc20:0x0` placeholder to **`slip44:5042`**, matching the registered SLIP-44 entry for Arc’s native USDC on chain `5042` / `0x13b2`. > > The **changelog** records this under Fixed for `@metamask/assets-controllers`. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 2e85266. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
1 parent bb70457 commit be7e45d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/assets-controllers/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
### Fixed
1515

16+
- Fix Arc (`5042`/`0x13b2`) native asset ID in `codefi-v2.ts`, from the `erc20:0x0` zero-address placeholder to `slip44:5042` now that Arc has a real SLIP-44 registry entry for its native USDC ([#9681](https://github.com/MetaMask/core/pull/9681))
1617
- Treat `loan` (not `lending`) as the DeFi liability position type in `DEFI_POSITION_LIABILITY_TYPES`, matching corrected Accounts API v6 position types ([#9683](https://github.com/MetaMask/core/pull/9683))
1718

1819
## [110.0.0]

packages/assets-controllers/src/token-prices-service/codefi-v2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ export const SPOT_PRICES_SUPPORT_INFO = {
290290
'0x1079': 'eip155:4217/slip44:60', // Tempo Mainnet - No native asset
291291
'0x10e6': 'eip155:4326/erc20:0x0000000000000000000000000000000000000000', // MegaETH Mainnet - Native symbol: ETH
292292
'0x1388': 'eip155:5000/erc20:0xdeaddeaddeaddeaddeaddeaddeaddeaddead0000', // Mantle - Native symbol: MNT
293-
'0x13b2': 'eip155:5042/erc20:0x0000000000000000000000000000000000000000', // Arc - Native symbol: USDC
293+
'0x13b2': 'eip155:5042/slip44:5042', // Arc - Native symbol: USDC
294294
'0x1b58': 'eip155:7000/slip44:7000', // ZetaChain - Native symbol: ZETA
295295
'0x2105': 'eip155:8453/slip44:60', // Base - Native symbol: ETH
296296
'0x1237': 'eip155:4663/slip44:60', // Robinhood Chain - Native symbol: ETH

0 commit comments

Comments
 (0)