Skip to content

chore: filter out Tron staking special assets#40540

Merged
HowardBraham merged 1 commit into
mainfrom
chore/filter-out-tron-staking-special-assets
Mar 6, 2026
Merged

chore: filter out Tron staking special assets#40540
HowardBraham merged 1 commit into
mainfrom
chore/filter-out-tron-staking-special-assets

Conversation

@ulissesferreira

@ulissesferreira ulissesferreira commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

Description

As part of Tron's staking experience improvements we will be sending more special assets from the Snap to the Extension. These special assets are not tradeable tokens and should be filtered out from selectors like we already do for Staked TRX for example.

This PR:

  • Adds the new special assets that should be ignored by the selectors
  • Renames the variables that deal with this logic to be more inclusive of assets that are not resources (only Energy and Bandwidth are resources)

Open in GitHub Codespaces

Changelog

CHANGELOG entry: null

Related issues

Closes: NEB-582, NEB-584, NEB-586

Manual testing steps

All existing Tron functionality should remain unchanged

Screenshots/Recordings

As you can see, the new assets being loaded from the preview build of MetaMask/snap-tron-wallet#226 are not being shown here.

Before

n/a

After

Screen.Recording.2026-03-04.at.16.23.04.mov

Pre-merge author checklist

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

Medium Risk
Changes token/balance filtering across several UI and bridge selectors based on CAIP parsing; misclassification could hide legitimate Tron assets or affect displayed totals, though covered by new/updated tests.

Overview
Adds a CAIP-based definition of Tron “special assets” (resources plus new staking-state pseudo-assets) via TRON_SPECIAL_ASSET_CAIP_TYPES and a new isTronSpecialAsset() helper.

Updates token lists, bridge asset selectors, and useMultichainBalances to filter these special assets by assetId so they don’t appear in user-facing pickers/lists or contribute to fiat totals, and renames the Tron-assets selector to getAssetsBySelectedAccountGroupWithTronSpecialAssets.

Refreshes Tron resource handling in useTronResources to identify energy/bandwidth via CAIP types (ignoring other staking-state assets) and expands unit tests to cover the new filtering behavior.

Written by Cursor Bugbot for commit 03583ad. This will update automatically on new commits. Configure here.

@github-actions

github-actions Bot commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

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.

@ulissesferreira ulissesferreira changed the title Chore/filter out tron staking special assets chore: filter out Tron staking special assets Mar 2, 2026
@ulissesferreira ulissesferreira force-pushed the chore/filter-out-tron-staking-special-assets branch 2 times, most recently from c38b3d0 to 54dca0d Compare March 3, 2026 14:38
@github-actions github-actions Bot added the size-M label Mar 3, 2026
@metamaskbotv2

metamaskbotv2 Bot commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

✨ Files requiring CODEOWNER review ✨

👨‍🔧 @MetaMask/core-extension-ux (1 files, +7 -11)
  • 📁 ui/
    • 📁 components/
      • 📁 multichain/
        • 📁 asset-picker-amount/
          • 📁 asset-picker-modal/
            • 📄 asset-picker-modal.tsx +7 -11

💎 @MetaMask/metamask-assets (1 files, +2 -2)
  • 📁 ui/
    • 📁 components/
      • 📁 app/
        • 📁 assets/
          • 📁 token-list/
            • 📄 token-list.tsx +2 -2

🔄 @MetaMask/swaps-engineers (3 files, +27 -48)
  • 📁 ui/
    • 📁 ducks/
      • 📁 bridge/
        • 📄 asset-selectors.ts +4 -7
        • 📄 utils.ts +0 -22
    • 📁 hooks/
      • 📁 bridge/
        • 📄 useTokensWithFiltering.ts +23 -19

@metamaskbotv2

metamaskbotv2 Bot commented Mar 3, 2026

Copy link
Copy Markdown
Contributor
Builds ready [54dca0d]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account352269535105408535
total352269535105408535
Confirm Txconfirm_tx604160306050760426050
total604160306050760426050
Bridge User Actionsbridge_load_page21319422814226228
bridge_load_asset_picker17612121536200215
bridge_search_token71570073715729737
total1109109211492311001149
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14691239175411415331689
load12341030150910312961429
domContentLoaded12261016150310012891422
domInteractive301799192683
firstPaint168711068122220334
backgroundConnect21919846429219253
firstReactRender20124152228
initialActions106124
loadScripts102781213059910881215
setupStore1463861625
numNetworkReqs312288192283
Power User HomeuiStartup17251348229117017562065
load11541045185815411361533
domContentLoaded11371034174014611221517
domInteractive3620179263673
firstPaint196791762223223410
backgroundConnect29125837020299331
firstReactRender23155772535
initialActions104113
loadScripts92782314811399141286
setupStore1674971728
numNetworkReqs60371602757127
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2202182211221221
srpButtonToSrpForm93919419494
confirmSrpToPwForm21212202222
pwFormToMetricsScreen15151501515
metricsToWalletReadyScreen16161701717
doneButtonToHomeScreen60859063517609635
openAccountMenuToAccountListLoaded290929012916629142916
total3883386339132038893913
Onboarding New WalletcreateWalletToSocialScreen2222202252223225
srpButtonToPwForm1111071153115115
createPwToRecoveryScreen999099
skipBackupToMetricsScreen37373813838
agreeButtonToOnboardingSuccess17171801718
doneButtonToAssetList57351364255610642
total96991410385510071038
Asset DetailsassetClickToPriceChart49415555255
total49415555255
Solana Asset DetailsassetClickToPriceChart77747927879
total77747927879
Import Srp HomeloginToHomeScreen20991930232118223172321
openAccountMenuAfterLogin52505425454
homeAfterImportWithNewWallet2695268427121227122712
total48504633520923650555209
Send TransactionsopenSendPageFromHome22172842328
selectTokenToSendFormLoaded23182842628
reviewTransactionToConfirmationPage8458448482846848
total90888994923919949
SwapopenSwapPageFromHome1131041237119123
fetchAndDisplaySwapQuotes289228872896328942896
total300529953015930143015
🌐 Dapp Page Load Benchmarks

Current Commit: 54dca0d | Date: 3/3/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.08s (±116ms) 🟡 | historical mean value: 1.05s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 765ms (±114ms) 🟢 | historical mean value: 735ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 90ms (±72ms) 🟢 | historical mean value: 85ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.08s 116ms 1.03s 2.02s 1.31s 2.02s
domContentLoaded 765ms 114ms 719ms 1.68s 982ms 1.68s
firstPaint 90ms 72ms 68ms 800ms 96ms 800ms
firstContentfulPaint 90ms 72ms 68ms 800ms 96ms 800ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs
  • background: 58 Bytes (0%)
  • ui: -25 Bytes (0%)
  • common: 176 Bytes (0%)

@ulissesferreira ulissesferreira added the team-networks PRs from the Networks team label Mar 3, 2026
@ulissesferreira ulissesferreira force-pushed the chore/filter-out-tron-staking-special-assets branch from 54dca0d to 383775f Compare March 3, 2026 15:27
@metamaskbotv2

metamaskbotv2 Bot commented Mar 3, 2026

Copy link
Copy Markdown
Contributor
Builds ready [383775f]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account30826637547356375
total30826637547356375
Confirm Txconfirm_tx6046602360681660476068
total6046602360681660476068
Bridge User Actionsbridge_load_page23118027033261270
bridge_load_asset_picker26615833367321333
bridge_search_token74272875912753759
total1267123113223412681322
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14271203170110114881607
load1198102314418912411357
domContentLoaded1191101714368712341348
domInteractive281787162674
firstPaint165711272134214306
backgroundConnect21519342224218237
firstReactRender19135762027
initialActions108225
loadScripts99482212468710281158
setupStore1363661524
numNetworkReqs312287192583
Power User HomeuiStartup212913826453101420924742
load11701005164313711851467
domContentLoaded1155997163713711661458
domInteractive3519168223774
firstPaint185771155126239306
backgroundConnect47826030115233411856
firstReactRender22155062435
initialActions106112
loadScripts94680214001289631212
setupStore16677101836
numNetworkReqs67351562770133
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2172162181217218
srpButtonToSrpForm92909419394
confirmSrpToPwForm22212212222
pwFormToMetricsScreen15151501515
metricsToWalletReadyScreen16151611616
doneButtonToHomeScreen759621917111841917
openAccountMenuToAccountListLoaded27972495296017929212960
total39193698420220040874202
Onboarding New WalletcreateWalletToSocialScreen2232182295225229
srpButtonToPwForm1101081111111111
createPwToRecoveryScreen889089
skipBackupToMetricsScreen37363913739
agreeButtonToOnboardingSuccess16161701717
doneButtonToAssetList54349559943581599
total9428871000459701000
Asset DetailsassetClickToPriceChart44394934549
total44394934549
Solana Asset DetailsassetClickToPriceChart73727417474
total73727417474
Import Srp HomeloginToHomeScreen1991196320092020092009
openAccountMenuAfterLogin543874136574
homeAfterImportWithNewWallet26582446289416928122894
total47434517490415848854904
Send TransactionsopenSendPageFromHome29184493344
selectTokenToSendFormLoaded21192422324
reviewTransactionToConfirmationPage87884991328896913
total92888998037943980
SwapopenSwapPageFromHome11410313514127135
fetchAndDisplaySwapQuotes290428902914929082914
total300429943012830123012
🌐 Dapp Page Load Benchmarks

Current Commit: 383775f | Date: 3/3/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.05s (±73ms) 🟡 | historical mean value: 1.05s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 743ms (±71ms) 🟢 | historical mean value: 737ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 85ms (±46ms) 🟢 | historical mean value: 85ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.05s 73ms 1.02s 1.72s 1.09s 1.72s
domContentLoaded 743ms 71ms 709ms 1.39s 776ms 1.39s
firstPaint 85ms 46ms 60ms 536ms 88ms 536ms
firstContentfulPaint 85ms 46ms 60ms 536ms 88ms 536ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 623 Bytes (0.01%)
  • ui: 1.1 KiB (0.01%)
  • common: 576 Bytes (0.01%)

@ulissesferreira ulissesferreira force-pushed the chore/filter-out-tron-staking-special-assets branch from 383775f to 2ff1a4f Compare March 3, 2026 16:30
@ulissesferreira ulissesferreira force-pushed the chore/filter-out-tron-staking-special-assets branch from 2ff1a4f to 441486b Compare March 3, 2026 17:06
@ulissesferreira ulissesferreira force-pushed the chore/filter-out-tron-staking-special-assets branch from 441486b to 5526661 Compare March 4, 2026 10:08
@ulissesferreira ulissesferreira force-pushed the chore/filter-out-tron-staking-special-assets branch from 5526661 to b0538c7 Compare March 4, 2026 10:16
@ulissesferreira ulissesferreira force-pushed the chore/filter-out-tron-staking-special-assets branch from b0538c7 to 6fa57ea Compare March 4, 2026 10:46
@metamaskbotv2

metamaskbotv2 Bot commented Mar 4, 2026

Copy link
Copy Markdown
Contributor
Builds ready [6fa57ea]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account29426532726319327
total29426532726319327
Confirm Txconfirm_tx602260146028560236028
total602260146028560236028
Bridge User Actionsbridge_load_page23119028934239289
bridge_load_asset_picker23615529364292293
bridge_search_token71070172911705729
total1193108712868112611286
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14191194183811014561592
load1189101115229912271374
domContentLoaded1181100615169712231367
domInteractive2917109212485
firstPaint166701333177201337
backgroundConnect21318927515217243
firstReactRender18143642025
initialActions105124
loadScripts98580213199610231161
setupStore14690101526
numNetworkReqs312288192381
Power User HomeuiStartup267413749979188322908288
load12291044191116512491602
domContentLoaded12091032188115712371561
domInteractive3519140233388
firstPaint214821135130279372
backgroundConnect1012252820417054496355
firstReactRender24166192546
initialActions107113
loadScripts995827165414710171321
setupStore1664681831
numNetworkReqs77391572488130
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2202192201220220
srpButtonToSrpForm94939409494
confirmSrpToPwForm22222202222
pwFormToMetricsScreen15151501515
metricsToWalletReadyScreen16151601616
doneButtonToHomeScreen62060865219610652
openAccountMenuToAccountListLoaded291029012923829092923
total40053875423714040944237
Onboarding New WalletcreateWalletToSocialScreen2202182232222223
srpButtonToPwForm1081081090109109
createPwToRecoveryScreen999099
skipBackupToMetricsScreen35353503535
agreeButtonToOnboardingSuccess16151711717
doneButtonToAssetList57949473788607737
total92688399343936993
Asset DetailsassetClickToPriceChart43375154551
total43375154551
Solana Asset DetailsassetClickToPriceChart82749058490
total82749058490
Import Srp HomeloginToHomeScreen1964189220306020162030
openAccountMenuAfterLogin44385254952
homeAfterImportWithNewWallet27222586289812728502898
total48024542499215949214992
Send TransactionsopenSendPageFromHome28184193441
selectTokenToSendFormLoaded20182322123
reviewTransactionToConfirmationPage8468448492847849
total89488290810902908
SwapopenSwapPageFromHome104981095108109
fetchAndDisplaySwapQuotes2897288629131129022913
total301030103011130113011
🌐 Dapp Page Load Benchmarks

Current Commit: 6fa57ea | Date: 3/4/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±47ms) 🟡 | historical mean value: 1.06s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 727ms (±67ms) 🟢 | historical mean value: 748ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 91ms (±132ms) 🟢 | historical mean value: 83ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 47ms 1.01s 1.42s 1.06s 1.42s
domContentLoaded 727ms 67ms 702ms 1.34s 746ms 1.34s
firstPaint 91ms 132ms 60ms 1.41s 88ms 1.41s
firstContentfulPaint 91ms 132ms 60ms 1.41s 88ms 1.41s
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs
  • background: 58 Bytes (0%)
  • ui: -25 Bytes (0%)
  • common: 138 Bytes (0%)

@ulissesferreira ulissesferreira force-pushed the chore/filter-out-tron-staking-special-assets branch from 6fa57ea to e740aa7 Compare March 4, 2026 11:57
@metamaskbotv2

metamaskbotv2 Bot commented Mar 4, 2026

Copy link
Copy Markdown
Contributor
Builds ready [e0dcd58]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account29526633829322338
total29526633829322338
Confirm Txconfirm_tx609860866104861046104
total609860866104861046104
Bridge User Actionsbridge_load_page28219135466335354
bridge_load_asset_picker2232162336223233
bridge_search_token73770576526758765
total12591115141111313161411
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14381230198911714671668
load12081020167010212341391
domContentLoaded12011013165310112291382
domInteractive3017120202684
firstPaint163741224131209323
backgroundConnect21319324311218239
firstReactRender19123752130
initialActions208225
loadScripts1005807144410010341176
setupStore1363151720
numNetworkReqs312291192281
Power User HomeuiStartup234614119942152021524790
load12031056174416212261629
domContentLoaded11861045173715912111610
domInteractive3618128213587
firstPaint201871498157244352
backgroundConnect735266779912013872650
firstReactRender23156672433
initialActions105113
loadScripts96682214771559891397
setupStore1675771825
numNetworkReqs70361562886126
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2192172222219222
srpButtonToSrpForm94929519595
confirmSrpToPwForm21212202122
pwFormToMetricsScreen15151501515
metricsToWalletReadyScreen16161601616
doneButtonToHomeScreen66159673654707736
openAccountMenuToAccountListLoaded290229012904129042904
total3935386440156639864015
Onboarding New WalletcreateWalletToSocialScreen2192182211219221
srpButtonToPwForm1071041123107112
createPwToRecoveryScreen888088
skipBackupToMetricsScreen36343823738
agreeButtonToOnboardingSuccess17171701717
doneButtonToAssetList58349568067617680
total97588310596010071059
Asset DetailsassetClickToPriceChart41364644446
total41364644446
Solana Asset DetailsassetClickToPriceChart75699197191
total75699197191
Import Srp HomeloginToHomeScreen2003188621197820382119
openAccountMenuAfterLogin43404934449
homeAfterImportWithNewWallet27722550294913728702949
total48224632493911048934939
Send TransactionsopenSendPageFromHome18181801818
selectTokenToSendFormLoaded21172842228
reviewTransactionToConfirmationPage8458428493847849
total8858788957891895
SwapopenSwapPageFromHome105961147114114
fetchAndDisplaySwapQuotes289428902897328972897
total2999298730111030083011
🌐 Dapp Page Load Benchmarks

Current Commit: e0dcd58 | Date: 3/4/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±40ms) 🟡 | historical mean value: 1.06s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 728ms (±38ms) 🟢 | historical mean value: 744ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 80ms (±13ms) 🟢 | historical mean value: 82ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 40ms 1.02s 1.33s 1.06s 1.33s
domContentLoaded 728ms 38ms 707ms 1.01s 753ms 1.01s
firstPaint 80ms 13ms 64ms 196ms 92ms 196ms
firstContentfulPaint 80ms 13ms 64ms 196ms 92ms 196ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 385 Bytes (0.01%)
  • ui: 4.19 KiB (0.05%)
  • common: 73 Bytes (0%)

@ulissesferreira ulissesferreira force-pushed the chore/filter-out-tron-staking-special-assets branch from e0dcd58 to a4b3db4 Compare March 5, 2026 02:16

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@metamaskbotv2

metamaskbotv2 Bot commented Mar 5, 2026

Copy link
Copy Markdown
Contributor
Builds ready [060402d]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account2812722948282294
total2812722948282294
Confirm Txconfirm_tx6044601760842860576084
total6044601760842860576084
Bridge User Actionsbridge_load_page26623629421280294
bridge_load_asset_picker21215226847244268
bridge_search_token74370677928763779
total1221110813148012781314
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14051180162910514461614
load118198313999912401366
domContentLoaded117597913939812351350
domInteractive2816100182576
firstPaint160671012116216331
backgroundConnect20819025413212232
firstReactRender19133642027
initialActions207225
loadScripts98279612039510391157
setupStore1464361725
numNetworkReqs312292192282
Power User HomeuiStartup17271386236415617662011
load11651049173414611521557
domContentLoaded11471038169314011351524
domInteractive3519166233588
firstPaint187781674169234337
backgroundConnect30126739722313343
firstReactRender22164752330
initialActions104112
loadScripts92981614501359191319
setupStore1684671727
numNetworkReqs58371492555131
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2192182201219220
srpButtonToSrpForm94929619596
confirmSrpToPwForm22212412324
pwFormToMetricsScreen16151711617
metricsToWalletReadyScreen16151601616
doneButtonToHomeScreen67760577164732771
openAccountMenuToAccountListLoaded2944290830063929493006
total3924389839733539733973
Onboarding New WalletcreateWalletToSocialScreen2202162233223223
srpButtonToPwForm1091061122111112
createPwToRecoveryScreen98101910
skipBackupToMetricsScreen36343713637
agreeButtonToOnboardingSuccess16161701617
doneButtonToAssetList52148955022530550
total9378761011479651011
Asset DetailsassetClickToPriceChart1281261312131131
total1281261312131131
Solana Asset DetailsassetClickToPriceChart1151101204120120
total1151101204120120
Import Srp HomeloginToHomeScreen2105201122047021562204
openAccountMenuAfterLogin46365884958
homeAfterImportWithNewWallet28682757310013329353100
total50294865524415151495244
Send TransactionsopenSendPageFromHome27252922829
selectTokenToSendFormLoaded20192212122
reviewTransactionToConfirmationPage8468458460846846
total8938928941893894
SwapopenSwapPageFromHome38344443844
fetchAndDisplaySwapQuotes269026902690026902690
total272727242732327282732
🌐 Dapp Page Load Benchmarks

Current Commit: 060402d | Date: 3/5/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±43ms) 🟡 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 731ms (±64ms) 🟢 | historical mean value: 740ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 83ms (±44ms) 🟢 | historical mean value: 82ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 43ms 1.01s 1.37s 1.08s 1.37s
domContentLoaded 731ms 64ms 707ms 1.32s 754ms 1.32s
firstPaint 83ms 44ms 64ms 512ms 88ms 512ms
firstContentfulPaint 83ms 44ms 64ms 512ms 88ms 512ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs
  • background: 58 Bytes (0%)
  • ui: -465 Bytes (-0.01%)
  • common: 249 Bytes (0%)

@ulissesferreira ulissesferreira force-pushed the chore/filter-out-tron-staking-special-assets branch from 060402d to b47825b Compare March 5, 2026 10:28
ulissesferreira added a commit to MetaMask/snap-tron-wallet that referenced this pull request Mar 5, 2026
## Explanation

Tweak the symbols to match both
MetaMask/metamask-extension#40540 and
MetaMask/metamask-mobile#26360

## References

n/a

## Checklist

- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] 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)
- [x] 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
@metamaskbotv2

metamaskbotv2 Bot commented Mar 5, 2026

Copy link
Copy Markdown
Contributor
Builds ready [b47825b]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account2772742824282282
total2772742824282282
Confirm Txconfirm_tx603660316041460416041
total603660316041460416041
Bridge User Actionsbridge_load_page2412362496249249
bridge_load_asset_picker18413623640223236
bridge_search_token72170175823738758
total1149108412868111991286
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14371226195312014671640
load1211990167611112481421
domContentLoaded1204984164610812431409
domInteractive291798172676
firstPaint1497039874198271
backgroundConnect21619726113223241
firstReactRender19114452026
initialActions107124
loadScripts1002791143910610351195
setupStore1372851524
numNetworkReqs312294202284
Power User HomeuiStartup263814669608160927654427
load12561074208915313071601
domContentLoaded12371054205514812881556
domInteractive3719174253694
firstPaint2038244592282365
backgroundConnect787278738010415352408
firstReactRender25166782638
initialActions105113
loadScripts1014853181814210531324
setupStore1773972033
numNetworkReqs76381542288121
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2212172284222228
srpButtonToSrpForm95949619696
confirmSrpToPwForm22222202222
pwFormToMetricsScreen16151601616
metricsToWalletReadyScreen17161701717
doneButtonToHomeScreen75673376816768768
openAccountMenuToAccountListLoaded292029112932929322932
total3993387440778940694077
Onboarding New WalletcreateWalletToSocialScreen2192172201220220
srpButtonToPwForm1081051112109111
createPwToRecoveryScreen991001010
skipBackupToMetricsScreen36334023740
agreeButtonToOnboardingSuccess17161811818
doneButtonToAssetList58148968872612688
total97587210757710211075
Asset DetailsassetClickToPriceChart12210614313128143
total12210614313128143
Solana Asset DetailsassetClickToPriceChart865811221109112
total865811221109112
Import Srp HomeloginToHomeScreen1938191319601919601960
openAccountMenuAfterLogin37353923839
homeAfterImportWithNewWallet29042686339027330183390
total47324558501817246895018
Send TransactionsopenSendPageFromHome21172532225
selectTokenToSendFormLoaded20172322223
reviewTransactionToConfirmationPage8468438482848848
total8868808925890892
SwapopenSwapPageFromHome28193683536
fetchAndDisplaySwapQuotes267826762682226822682
total2704269527171027172717
🌐 Dapp Page Load Benchmarks

Current Commit: b47825b | Date: 3/5/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±39ms) 🟡 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 730ms (±37ms) 🟢 | historical mean value: 740ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 81ms (±11ms) 🟢 | historical mean value: 82ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 39ms 1.02s 1.33s 1.07s 1.33s
domContentLoaded 730ms 37ms 709ms 1.01s 757ms 1.01s
firstPaint 81ms 11ms 68ms 176ms 88ms 176ms
firstContentfulPaint 81ms 11ms 68ms 176ms 88ms 176ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs
  • background: 58 Bytes (0%)
  • ui: -465 Bytes (-0.01%)
  • common: 249 Bytes (0%)

@ulissesferreira ulissesferreira force-pushed the chore/filter-out-tron-staking-special-assets branch from b47825b to 03583ad Compare March 5, 2026 11:39
@metamaskbotv2

metamaskbotv2 Bot commented Mar 5, 2026

Copy link
Copy Markdown
Contributor
Builds ready [03583ad]
⚡ Performance Benchmarks
👆 Interaction Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Load New Accountload_new_account27726529110279291
total27726529110279291
Confirm Txconfirm_tx6075606160921260786092
total6075606160921260786092
Bridge User Actionsbridge_load_page23820627524252275
bridge_load_asset_picker22417928838240288
bridge_search_token74071675516755755
total1227119912542012351254
🔌 Startup Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Standard HomeuiStartup14021221192210714411607
load1181101015889812171353
domContentLoaded1171100615659212071339
domInteractive2917125202579
firstPaint172681209130219319
backgroundConnect21519643226217245
firstReactRender19114252034
initialActions107124
loadScripts97681013749310131147
setupStore1473051623
numNetworkReqs312292192583
Power User HomeuiStartup280114679697186335958457
load12391035178316012821585
domContentLoaded12201023177615212601557
domInteractive40202393536115
firstPaint223881668206271448
backgroundConnect979256798214457303224
firstReactRender25167392638
initialActions108114
loadScripts1005829151914410271345
setupStore1654271729
numNetworkReqs76391412289122
🧭 User Journey Benchmarks
BenchmarkMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P75 (ms)P95 (ms)
Onboarding Import WalletimportWalletToSocialScreen2202172222221222
srpButtonToSrpForm9694100296100
confirmSrpToPwForm22212202222
pwFormToMetricsScreen16151601616
metricsToWalletReadyScreen17161811618
doneButtonToHomeScreen61758268138607681
openAccountMenuToAccountListLoaded28502501311420729603114
total38953702418717239284187
Onboarding New WalletcreateWalletToSocialScreen2202172222221222
srpButtonToPwForm1121041226114122
createPwToRecoveryScreen889099
skipBackupToMetricsScreen35343713637
agreeButtonToOnboardingSuccess16161601616
doneButtonToAssetList60756864226612642
total1018100510401610401040
Asset DetailsassetClickToPriceChart1131081194116119
total1131081194116119
Solana Asset DetailsassetClickToPriceChart1229515623142156
total1229515623142156
Import Srp HomeloginToHomeScreen187518671886818861886
openAccountMenuAfterLogin614678137378
homeAfterImportWithNewWallet26322527277211227642772
total45704442477113046794771
Send TransactionsopenSendPageFromHome22172742627
selectTokenToSendFormLoaded19192002020
reviewTransactionToConfirmationPage8468448482848848
total8878848944889894
SwapopenSwapPageFromHome331858143858
fetchAndDisplaySwapQuotes267826772679126792679
total2720269627592427382759
🌐 Dapp Page Load Benchmarks

Current Commit: 03583ad | Date: 3/5/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.06s (±39ms) 🟡 | historical mean value: 1.06s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 746ms (±37ms) 🟢 | historical mean value: 742ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 82ms (±11ms) 🟢 | historical mean value: 82ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.06s 39ms 1.03s 1.34s 1.09s 1.34s
domContentLoaded 746ms 37ms 719ms 1.01s 771ms 1.01s
firstPaint 82ms 11ms 64ms 176ms 92ms 176ms
firstContentfulPaint 82ms 11ms 64ms 176ms 92ms 176ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 7.05 KiB (0.08%)
  • common: 732 Bytes (0.01%)

@sonarqubecloud

sonarqubecloud Bot commented Mar 5, 2026

Copy link
Copy Markdown

@ulissesferreira ulissesferreira added this pull request to the merge queue Mar 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.23.0 Issue or pull request that will be included in release 13.23.0 size-L team-networks PRs from the Networks team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants