feat: token section on home page should always show popular networks#27009
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. |
| <Tokens isFullView /> | ||
| </SafeAreaView> | ||
| <> | ||
| <AssetPollingProvider /> |
There was a problem hiding this comment.
Oooho nice catch here!
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Performance Test Selection: |
The committed fixture schema is out of date. To update, comment: |
|
| <Homepage ref={homepageRef} /> | ||
| </HomepageScrollContext.Provider> | ||
| <> | ||
| {isFocused && <AssetPollingProvider chainIds={evmChainIds} />} |
There was a problem hiding this comment.
we don't do polling for them , we use cronJob snap



Description
always display popular networks assets on the token section of the home page
Changelog
CHANGELOG entry: always display popular networks assets on the token section of the home page
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
before.mov
After
after.mov
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Medium risk because it changes token selection and balance refresh/polling paths (including chain-id filtering and new controller calls), which can affect what assets appear and when balances update across networks.
Overview
The homepage
TokensSectionnow always derives its token list from the popular network set returned byuseNetworkEnablement, using a new selector (selectSortedAssetsBySelectedAccountGroupForChainIds) that filters assets by an explicit chain-id list (handling both CAIP-2 and EVM hex forms). Token refreshes from the homepage are also restricted to popular EVM networks by filteringevmNetworkConfigurationsByChainIdbefore callingrefreshTokens.useNetworkEnablementnow exposespopularEvmNetworks,popularMultichainNetworks, andpopularNetworks(backed by the upgraded@metamask/network-enablement-controller@4.2.0), and wallet refresh/polling is updated to use these lists:useBalanceRefreshfilters which networks it refreshes (and additionally triggersTokenDetectionController.detectTokensandTokenBalancesController.updateBalances), whileWallet/TokensFullViewmountAssetPollingProvideronly when focused and passchainIdsfor the homepage-sections path.Tests/mocks are updated broadly to accommodate the new hook shape and controller methods, plus selector changes and snapshot updates.
Written by Cursor Bugbot for commit daa2c10. This will update automatically on new commits. Configure here.