feat: arc network integration cp-13.35.1#43509
Conversation
|
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. |
✨ Files requiring CODEOWNER review ✨👨🔧 @MetaMask/core-extension-ux (1 files, +20 -7)
|
Builds ready [7a7a5c7]
⚡ Performance Benchmarks (Total: 🟢 13 pass · 🟡 12 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 3 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 15f8ad6. Configure here.
Builds ready [9ae50ea]
⚡ Performance Benchmarks (Total: 🟢 15 pass · 🟡 9 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [9ae50ea]
⚡ Performance Benchmarks (Total: 🟢 15 pass · 🟡 10 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [5806ac8]
⚡ Performance Benchmarks (Total: 🟢 17 pass · 🟡 8 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [e5b924d]
⚡ Performance Benchmarks (Total: 🟢 18 pass · 🟡 7 warn · 🔴 0 fail)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|

Description
arc network integration
Changelog
CHANGELOG entry: arc network integration
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Changes balance aggregation and asset visibility on Arc; incorrect filtering could hide the wrong token or skew displayed balances, but scope is chain-specific and covered by tests.
Overview
On Arc, native gas is USDC, so the USDC ERC20 at
ARC_USDC_TOKEN_ADDRESS(0x3600…) is treated as a display duplicate of native USDC. This PR hides that ERC20 everywhere users pick or see tokens, while keeping native USDC as the source of truth.A shared constant and comments document the contract. Asset selectors drop the ERC20 from per-chain asset maps (including hidden assets), and token balance aggregation strips the same address on Arc so totals are not doubled. Token management and the send asset picker apply the same filter (with hex/CAIP chain id and address normalization). API token search/browse on Arc also omits the duplicate.
When assets-unify-state is on,
useArcDefaultTokensruns underAssetsControllerPollingand batch-imports Arc USDC as a custom asset for each EVM account that does not already have it, only if Arc is configured—without re-dispatching on re-render.Reviewed by Cursor Bugbot for commit 9ae50ea. Bugbot is set up for automated code reviews on this repo. Configure here.