Skip to content

Conversation

@bergarces
Copy link
Contributor

@bergarces bergarces commented Nov 12, 2025

Description

Upgrade assets-controllers to start using Price API v3 spot-prices endpoint.

Open in GitHub Codespaces

Changelog

CHANGELOG entry: null

Related issues

Fixes: https://consensyssoftware.atlassian.net/browse/ASSETS-1575

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

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

Upgrades @metamask/assets-controllers to v91 with spot-prices v3 tweaks (decimal chainId, added MON currency), normalizes account casing in balance updates, simplifies token rates messaging/polling, adds a selector variant for Tron resources, and updates LavaMoat policies.

  • Dependencies
    • Upgrade @metamask/assets-controllers to v91.0.0 (patched); update related locks and @metamask/controller-utils/@metamask/polling-controller versions.
  • Price Service (vendor patch)
    • Add mon to SUPPORTED_CURRENCIES.
    • Use decimal chain IDs in /spot-prices URL (parseInt(chainId, 16)).
    • Update SPOT_PRICES_SUPPORT_INFO mappings (many set to null).
  • Balances
    • In TokenBalancesController, lower-case account keys when reading/writing tokenBalances.
  • Token Rates
    • Restrict messenger to TokensController:getState and NetworkController:getState and corresponding state-change events.
    • Simplify useTokenRatesPolling to only manage polling (no returned state).
  • Selectors/Tests
    • getAssetsBySelectedAccountGroup now directly proxies to selectAssetsBySelectedAccountGroup.
    • Add getAssetsBySelectedAccountGroupWithTronResources (passes { filterTronStakedTokens: false }); update tests accordingly.
  • Security Policy
    • Update LavaMoat policies to reference @metamask/assets-controllers>@metamask/polling-controller and add a new policy block.

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

@github-actions
Copy link
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.

@metamaskbot
Copy link
Collaborator

Builds ready [1b01012]
UI Startup Metrics (1234 ± 96 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1234108515089612941417
load106993813279011301244
domContentLoaded106393213218911221238
domInteractive2314119192070
firstPaint59979128941210391157
backgroundConnect2312192627235243
firstReactRender25194952639
getState1984172234
initialActions001001
loadScripts8387121088889031009
setupStore1163441120
numNetworkReqs1367619670
BrowserifyPower User HomeuiStartup16201462202520819312025
load1025899138417212811384
domContentLoaded1018890138017312771380
domInteractive43151524593152
firstPaint478188951311932951
backgroundConnect2362202579242257
firstReactRender27234342743
getState1656319229181192
initialActions001011
loadScripts791666115216910431152
setupStore1392751127
numNetworkReqs1196824959168249
WebpackStandard HomeuiStartup814683115483821970
load60155395973595752
domContentLoaded59454793370590740
domInteractive171277121449
firstPaint21357964206204713
backgroundConnect241174132451
firstReactRender29176593337
getState1164141316
initialActions001001
loadScripts59154592368588729
setupStore1153141216
numNetworkReqs1467620874
WebpackPower User HomeuiStartup1049867173928612171739
load654569929119806929
domContentLoaded637558899107769899
domInteractive34131483867148
firstPaint36263903308772903
backgroundConnect55102287068228
firstReactRender27253012830
getState1419515418151154
initialActions001011
loadScripts633556888103758888
setupStore1562682526
numNetworkReqs1086622547163225
FirefoxBrowserifyStandard HomeuiStartup15091344203712115601796
load1276114815168013091468
domContentLoaded1276114815168013091468
domInteractive1073433152111234
firstPaint------
backgroundConnect4622197215481
firstReactRender26225442732
getState138129141120
initialActions002001
loadScripts1249113014737512861413
setupStore1478091333
numNetworkReqs1266315757
BrowserifyPower User HomeuiStartup22231840316341027423163
load14291178197925317661979
domContentLoaded14281177197825317661978
domInteractive22278617193493617
firstPaint------
backgroundConnect11832377109217377
firstReactRender443483125083
getState1288917124145171
initialActions102112
loadScripts13821158191024316801910
setupStore3772355631235
numNetworkReqs1346631683206316
WebpackStandard HomeuiStartup16581469204014017151961
load13971241175810714921609
domContentLoaded13961241175810714921609
domInteractive1023638351114178
firstPaint------
backgroundConnect51261572456100
firstReactRender3724147173883
getState147102131449
initialActions002001
loadScripts13661203172910414561542
setupStore16775131550
numNetworkReqs1367018867
WebpackPower User HomeuiStartup22121881276230526152762
load15281283193620217371936
domContentLoaded15281282193620317371936
domInteractive16452431137320431
firstPaint------
backgroundConnect933324073157240
firstReactRender42316174461
getState1428323141174231
initialActions106116
loadScripts14921262189219716941892
setupStore27786214486
numNetworkReqs1347031377207313
📊 Page Load Benchmark Results

Current Commit: 1b01012 | Date: 11/12/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.07s (±77ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 750ms (±73ms) 🟢 | historical mean value: 728ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 80ms (±12ms) 🟢 | historical mean value: 77ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.07s 77ms 1.02s 1.39s 1.32s 1.39s
domContentLoaded 750ms 73ms 711ms 1.05s 992ms 1.05s
firstPaint 80ms 12ms 60ms 176ms 88ms 176ms
firstContentfulPaint 80ms 12ms 60ms 176ms 88ms 176ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 68 Bytes (0%)
  • ui: 3.71 KiB (0.05%)
  • common: 1.11 KiB (0.01%)

@metamaskbot
Copy link
Collaborator

Builds ready [2bc2dc4]
UI Startup Metrics (1217 ± 81 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1217108714308112741356
load104993612197411051195
domContentLoaded104392712137310991182
domInteractive2314124171868
firstPaint57980123841010301167
backgroundConnect2312172558235246
firstReactRender25174962537
getState2087492435
initialActions002001
loadScripts81870997472876952
setupStore1162741119
numNetworkReqs1367719671
BrowserifyPower User HomeuiStartup16821497263829919182638
load1062915182725213201827
domContentLoaded1054900180124913161801
domInteractive42161464398146
firstPaint64118518374809411837
backgroundConnect23522627111239271
firstReactRender40364734147
getState17015220619190206
initialActions001001
loadScripts827678155024410911550
setupStore1493581435
numNetworkReqs1227325468171254
WebpackStandard HomeuiStartup7656471165977711052
load55751090982548810
domContentLoaded55050589379542791
domInteractive161167101343
firstPaint17554837163164525
backgroundConnect241191142457
firstReactRender27168793134
getState1164551316
initialActions001001
loadScripts54850388577540784
setupStore1152841317
numNetworkReqs1467620873
WebpackPower User HomeuiStartup1095915169927214871699
load677591911121850911
domContentLoaded65257986497756864
domInteractive33131163275116
firstPaint401121868283674868
backgroundConnect63925078163250
firstReactRender39374323943
getState1429816724157167
initialActions001001
loadScripts64857785494745854
setupStore1262782527
numNetworkReqs1127122654167226
FirefoxBrowserifyStandard HomeuiStartup14731315179412015371756
load1245112715289212991452
domContentLoaded1245112715289212991451
domInteractive1073630954106275
firstPaint------
backgroundConnect4225113134968
firstReactRender26216582650
getState1174351119
initialActions001011
loadScripts1220111014448812711415
setupStore156203211332
numNetworkReqs1266315854
BrowserifyPower User HomeuiStartup23651888386652928293866
load14771236200225517752002
domContentLoaded14771235200225517742002
domInteractive21665690193448690
firstPaint------
backgroundConnect12839455117218455
firstReactRender635093127293
getState1319521031137210
initialActions30328132
loadScripts14231188188123617381881
setupStore3361123262112
numNetworkReqs1427133578219335
WebpackStandard HomeuiStartup15661422193113215601918
load1339121116289213591584
domContentLoaded1338121016279213581584
domInteractive91311722899157
firstPaint------
backgroundConnect47251742652107
firstReactRender302276123172
getState13758111247
initialActions001001
loadScripts1309119115447913331504
setupStore186181261368
numNetworkReqs1367317862
WebpackPower User HomeuiStartup22911831309235826203092
load15551235193821017761938
domContentLoaded15551235193721017751937
domInteractive18937636191327636
firstPaint------
backgroundConnect933230885101308
firstReactRender60421212067121
getState1298220233151202
initialActions20297129
loadScripts15201208189220417341892
setupStore3551784648178
numNetworkReqs1675834894234348
📊 Page Load Benchmark Results

Current Commit: 2bc2dc4 | Date: 11/13/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±72ms) 🟡 | historical mean value: 1.03s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 728ms (±69ms) 🟢 | historical mean value: 717ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±11ms) 🟢 | historical mean value: 78ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 72ms 999ms 1.32s 1.26s 1.32s
domContentLoaded 728ms 69ms 687ms 1.01s 942ms 1.01s
firstPaint 76ms 11ms 60ms 172ms 84ms 172ms
firstContentfulPaint 76ms 11ms 60ms 172ms 84ms 172ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 1.87 KiB (0.02%)

@bergarces bergarces requested a review from a team as a code owner November 14, 2025 13:44
@github-actions github-actions bot added size-S and removed size-XS labels Nov 14, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [bfcc40a]
UI Startup Metrics (1242 ± 98 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1242107617339812951426
load107794114729011281224
domContentLoaded107293614478811221214
domInteractive231593172075
firstPaint60090148442810801176
backgroundConnect2332202647236243
firstReactRender29195873145
getState21857102545
initialActions107112
loadScripts844714120188898988
setupStore1162841117
numNetworkReqs1367620672
BrowserifyPower User HomeuiStartup21601899298825322372988
load1167994175821013681758
domContentLoaded1145969173321013601733
domInteractive541817754124177
firstPaint752192175248811091752
backgroundConnect25623029614262296
firstReactRender75451141890114
getState23317734852272348
initialActions102112
loadScripts911743148420511351484
setupStore25163763037
numNetworkReqs1168717428150174
WebpackStandard HomeuiStartup7836641117887861043
load55851285474554797
domContentLoaded55150682671548782
domInteractive171162121450
firstPaint18154829184166728
backgroundConnect261275152865
firstReactRender29195373536
getState1062131215
initialActions104111
loadScripts54850481969546774
setupStore1061631214
numNetworkReqs1467720874
WebpackPower User HomeuiStartup1057888157320712361573
load652567946121719946
domContentLoaded638557912113698912
domInteractive39131754868175
firstPaint35065916318702916
backgroundConnect51112926775292
firstReactRender40374424244
getState1439618925154189
initialActions001011
loadScripts633555902110685902
setupStore86122912
numNetworkReqs755811621106116
FirefoxBrowserifyStandard HomeuiStartup14661328189311015151734
load1243113915368812781443
domContentLoaded1242113915358812771442
domInteractive56332543761148
firstPaint------
backgroundConnect382594134364
firstReactRender27224962843
getState1173751121
initialActions103123
loadScripts1220111415148612521417
setupStore13681111131
numNetworkReqs1266614754
BrowserifyPower User HomeuiStartup31592506458868733384588
load15331279199820517871998
domContentLoaded15331279199820517861998
domInteractive23896605161378605
firstPaint------
backgroundConnect48510412824048861282
firstReactRender885911719108117
getState16411037069191370
initialActions223023
loadScripts14751252178518617621785
setupStore12732498113148498
numNetworkReqs1196722755199227
WebpackStandard HomeuiStartup18201642269419318062266
load15261353199613515311854
domContentLoaded15261352199513515311853
domInteractive66353783970121
firstPaint------
backgroundConnect56322192864119
firstReactRender382899113949
getState14870111432
initialActions214123
loadScripts14881327190712014981771
setupStore228270311576
numNetworkReqs1367018767
WebpackPower User HomeuiStartup30232446428550534164285
load16261430207220218462072
domContentLoaded16261430207120218452071
domInteractive23179631196515631
firstPaint------
backgroundConnect40095918220557918
firstReactRender84631341996134
getState13811021526152215
initialActions213133
loadScripts15801363204120518062041
setupStore11636526111136526
numNetworkReqs1216722453200224
📊 Page Load Benchmark Results

Current Commit: bfcc40a | Date: 11/14/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.09s (±330ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 774ms (±357ms) 🟢 | historical mean value: 725ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 111ms (±338ms) 🟢 | historical mean value: 78ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.09s 330ms 1.02s 4.31s 1.27s 4.31s
domContentLoaded 774ms 357ms 704ms 4.27s 945ms 4.27s
firstPaint 111ms 338ms 56ms 3.47s 88ms 3.47s
firstContentfulPaint 111ms 338ms 56ms 3.47s 88ms 3.47s
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 148 Bytes (0%)
  • ui: -186 Bytes (0%)
  • common: 2.93 KiB (0.03%)

@github-actions github-actions bot added size-M and removed size-S labels Nov 14, 2025
@bergarces bergarces changed the title prices v3 upgrade feat: prices v3 upgrade Nov 14, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [14efbd0]
UI Startup Metrics (1235 ± 90 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1235107114389013041384
load106992012508211401198
domContentLoaded106291512408111341186
domInteractive231481172074
firstPaint633120124643310741214
backgroundConnect23221928710234255
firstReactRender26195242833
getState217119132239
initialActions103112
loadScripts837699101681900967
setupStore1071821113
numNetworkReqs1367619670
BrowserifyPower User HomeuiStartup21411879299226422642992
load1120946177923714041779
domContentLoaded1100934175223513571752
domInteractive601718964152189
firstPaint741212176250010571762
backgroundConnect24823228113250281
firstReactRender73461252186125
getState25116634757311347
initialActions102112
loadScripts873714149822611181498
setupStore26164273242
numNetworkReqs1179019033147190
WebpackStandard HomeuiStartup83371112031048251139
load61255597995605917
domContentLoaded60555296491598901
domInteractive171298131452
firstPaint22260967223202879
backgroundConnect241270132657
firstReactRender31197093540
getState1162031316
initialActions101011
loadScripts60255095489596891
setupStore1061731214
numNetworkReqs1367719870
WebpackPower User HomeuiStartup1149937173726814201737
load677585977133746977
domContentLoaded659573951125716951
domInteractive43132035478203
firstPaint31890643199580643
backgroundConnect681824266115242
firstReactRender41384624346
getState1449519523152195
initialActions101011
loadScripts655571941121706941
setupStore96275827
numNetworkReqs775713126115131
FirefoxBrowserifyStandard HomeuiStartup15301387229414315451843
load1285116116018813211468
domContentLoaded1285116116008813201467
domInteractive57332083562146
firstPaint------
backgroundConnect50243073554119
firstReactRender28225652840
getState1274261122
initialActions203122
loadScripts1255114415158212921439
setupStore14786121233
numNetworkReqs1267116760
BrowserifyPower User HomeuiStartup34432628483066543454830
load15681344198922418971989
domContentLoaded15681343198922418971989
domInteractive22267483145436483
firstPaint------
backgroundConnect713104156741510121567
firstReactRender89651702493170
getState209112563119212563
initialActions213133
loadScripts15211290194922718371949
setupStore913616238125162
numNetworkReqs1217222256208222
WebpackStandard HomeuiStartup16001422220714316041953
load13541198170610813781622
domContentLoaded13531198170610813781622
domInteractive57312012967114
firstPaint------
backgroundConnect46211172251105
firstReactRender332480103450
getState1274771233
initialActions203123
loadScripts1324118216739913511574
setupStore197174221562
numNetworkReqs1367218768
WebpackPower User HomeuiStartup34342703511169638645111
load17441468311340619723113
domContentLoaded17431468311240619723112
domInteractive2668211742874801174
firstPaint------
backgroundConnect49710513783637841378
firstReactRender925113421105134
getState239113608143235608
initialActions51419341
loadScripts16871416306240019443062
setupStore10129543119105543
numNetworkReqs1237322251170222
📊 Page Load Benchmark Results

Current Commit: 14efbd0 | Date: 11/14/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.05s (±37ms) 🟡 | historical mean value: 1.03s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 733ms (±34ms) 🟢 | historical mean value: 718ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 78ms (±11ms) 🟢 | historical mean value: 77ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.05s 37ms 1.03s 1.32s 1.08s 1.32s
domContentLoaded 733ms 34ms 713ms 985ms 758ms 985ms
firstPaint 78ms 11ms 64ms 168ms 88ms 168ms
firstContentfulPaint 78ms 11ms 64ms 168ms 88ms 168ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 148 Bytes (0%)
  • ui: -186 Bytes (0%)
  • common: 2.93 KiB (0.03%)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There changes should not affect anything. This hook is used purely to start polling, the return result is not used and therefore it is not needed.

@metamaskbot
Copy link
Collaborator

Builds ready [85dbc1a]
UI Startup Metrics (1251 ± 111 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12511071155711113041478
load1083918140410511231315
domContentLoaded1077916139610411191309
domInteractive2414219261973
firstPaint68489140443510841245
backgroundConnect2302172638234245
firstReactRender29194773444
getState24899132946
initialActions104112
loadScripts85369911651038981086
setupStore1152441321
numNetworkReqs1367620672
BrowserifyPower User HomeuiStartup21151856274324122602743
load1138969156319214011563
domContentLoaded1119955155019613941550
domInteractive591921154120211
firstPaint632212155546210471555
backgroundConnect2502392656254265
firstReactRender73501001484100
getState22517529342274293
initialActions102112
loadScripts888723129718811601297
setupStore28184573045
numNetworkReqs1169117930150179
WebpackStandard HomeuiStartup84371312061008431124
load61956194987615882
domContentLoaded61255692683609869
domInteractive171263121452
firstPaint20560922214189867
backgroundConnect251179143058
firstReactRender3120112113538
getState1164351219
initialActions104111
loadScripts60955491681607858
setupStore1153341320
numNetworkReqs1367720671
WebpackPower User HomeuiStartup1076936162019311861620
load664584969115764969
domContentLoaded646572917104714917
domInteractive39141204073120
firstPaint40163975317770975
backgroundConnect41112014873201
firstReactRender43404924449
getState1459217424156174
initialActions101011
loadScripts642570906101703906
setupStore1872892728
numNetworkReqs70541162084116
FirefoxBrowserifyStandard HomeuiStartup14691320184411514991741
load1240112615508512741437
domContentLoaded1240112615498412741436
domInteractive53291602957135
firstPaint------
backgroundConnect3824116163870
firstReactRender27226072743
getState1176361120
initialActions203123
loadScripts1217111015178112501410
setupStore13766101334
numNetworkReqs1267316762
BrowserifyPower User HomeuiStartup35232663444047436944440
load16431393223726818092237
domContentLoaded16431392223726818082237
domInteractive25587646181457646
firstPaint------
backgroundConnect66115612713989891271
firstReactRender885312218102122
getState19172635123198635
initialActions213133
loadScripts15891364221627617402216
setupStore12626478112151478
numNetworkReqs1155821754192217
WebpackStandard HomeuiStartup15641402213114415831892
load1328118816019313461551
domContentLoaded1328118816019413451551
domInteractive55322342862108
firstPaint------
backgroundConnect4319230254880
firstReactRender31257083444
getState147207211144
initialActions103122
loadScripts1301117215608913211511
setupStore15793151252
numNetworkReqs1367318766
WebpackPower User HomeuiStartup31772570403048737094030
load16731457222819217882228
domContentLoaded16731457222719217882227
domInteractive23785491144433491
firstPaint------
backgroundConnect367115895254635895
firstReactRender915215427112154
getState1775844183212441
initialActions213123
loadScripts16291421214518817502145
setupStore1082950910795509
numNetworkReqs1217323359212233
📊 Page Load Benchmark Results

Current Commit: 85dbc1a | Date: 11/16/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 978ms (±74ms) 🟢 | historical mean value: 1.03s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 685ms (±71ms) 🟢 | historical mean value: 718ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 74ms (±12ms) 🟢 | historical mean value: 77ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 978ms 74ms 942ms 1.28s 1.20s 1.28s
domContentLoaded 685ms 71ms 650ms 987ms 904ms 987ms
firstPaint 74ms 12ms 60ms 180ms 84ms 180ms
firstContentfulPaint 74ms 12ms 60ms 180ms 84ms 180ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 148 Bytes (0%)
  • ui: -186 Bytes (0%)
  • common: 2.93 KiB (0.03%)

+ '0x82750': null, //'eip155:534352/slip44:60', // Scroll Mainnet - Native symbol: ETH
+ '0x4e454152': null, //'eip155:60/slip44:60', // Aurora Mainnet (Ethereum L2 on NEAR) - Native symbol: ETH
+ '0x63564c40': null, //'eip155:1666600000/slip44:1023', // Harmony Mainnet Shard 0 - Native symbol: ONE
};
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Setting them to null falls back to v2. When the API is fixed we can remove this part of the patch.

return [];
}
- const url = new URL(`${BASE_URL_V2}/chains/${chainId}/spot-prices`);
+ const url = new URL(`${BASE_URL_V2}/chains/${parseInt(chainId, 16)}/spot-prices`);
Copy link
Contributor Author

@bergarces bergarces Nov 26, 2025

Choose a reason for hiding this comment

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

It works both with decimal and hexadecimal, but all the e2e tests are mocked using decimal, so this is easier than changing all of them.

When we remove the fallback to v2 they'll have to be changed anyway.

@metamaskbot
Copy link
Collaborator

Builds ready [49381b2]
UI Startup Metrics (1327 ± 144 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup13271067170014414151617
load1040860141311511061241
domContentLoaded1034849140511411011234
domInteractive2614100212190
firstPaint4769214154119781235
backgroundConnect21019426711215230
firstReactRender412483124964
getState72231633493140
initialActions1013215
loadScripts83065311981128941040
setupStore1563761826
numNetworkReqs41281523430141
BrowserifyPower User HomeuiStartup21881870350227123792625
load1031906175614310391422
domContentLoaded1017897172514210271412
domInteractive37171973730152
firstPaint62110417594269791433
backgroundConnect272202771122241564
firstReactRender974818526115133
getState18013326329204229
initialActions105112
loadScripts80569414661408011201
setupStore23972132849
numNetworkReqs102642805396255
WebpackStandard HomeuiStartup85972112361148901121
load63556085083671820
domContentLoaded63055484182668816
domInteractive2615104212186
firstPaint21479817159204640
backgroundConnect114136151029
firstReactRender3620163203775
getState5218176276696
initialActions108113
loadScripts62755183381666814
setupStore1354381337
numNetworkReqs41281483430143
WebpackPower User HomeuiStartup16911329283324819282090
load688574117299689912
domContentLoaded678567116299678905
domInteractive37181653332128
firstPaint308991176224306853
backgroundConnect99860318438582
firstReactRender944715122110130
getState17612868357185232
initialActions105112
loadScripts676565115498676897
setupStore221053132549
numNetworkReqs96592815992270
FirefoxBrowserifyStandard HomeuiStartup14011156196016414881710
load106392413589911191277
domContentLoaded106291913589911181276
domInteractive64332043586138
firstPaint------
backgroundConnect63263104565147
firstReactRender28185183544
getState2610190222860
initialActions205123
loadScripts103590812828710901217
setupStore31102413828122
numNetworkReqs40281272733120
BrowserifyPower User HomeuiStartup26112004443540027723271
load1144929254421911611449
domContentLoaded1144929254421911601449
domInteractive123331183138111354
firstPaint------
backgroundConnect1222388397132257
firstReactRender85403223094118
getState27329927200304751
initialActions2053523
loadScripts1108913242920911201424
setupStore18110853203191690
numNetworkReqs100613176381275
WebpackStandard HomeuiStartup17141417236717318342054
load13341154189211914051508
domContentLoaded13341154189211914051508
domInteractive71272024296171
firstPaint------
backgroundConnect68291893380151
firstReactRender372297143977
getState2811292352478
initialActions204123
loadScripts13021135174711313681477
setupStore2510133222280
numNetworkReqs40281242436114
WebpackPower User HomeuiStartup31482227604486732385093
load15441166315650716642784
domContentLoaded15431166315650716632783
domInteractive132301035168103457
firstPaint------
backgroundConnect2042516402971541154
firstReactRender943832140102179
getState303791408250414821
initialActions311021027
loadScripts14411141297039813822601
setupStore1317771173131599
numNetworkReqs93512435673227
📊 Page Load Benchmark Results

Current Commit: 49381b2 | Date: 11/26/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.05s (±73ms) 🟡 | historical mean value: 1.03s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 739ms (±70ms) 🟢 | historical mean value: 719ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 77ms (±11ms) 🟢 | historical mean value: 78ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.05s 73ms 1.01s 1.33s 1.30s 1.33s
domContentLoaded 739ms 70ms 703ms 1.01s 966ms 1.01s
firstPaint 77ms 11ms 64ms 168ms 88ms 168ms
firstContentfulPaint 77ms 11ms 64ms 168ms 88ms 168ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: -137 Bytes (0%)
  • ui: -547 Bytes (-0.01%)
  • common: 8.22 KiB (0.09%)

@metamaskbot
Copy link
Collaborator

Builds ready [0c67149]
UI Startup Metrics (1327 ± 117 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup13271044160511713921554
load105485112499811081228
domContentLoaded104884612419610991219
domInteractive2615112232192
firstPaint61995126942710541229
backgroundConnect21619226912219243
firstReactRender38237794261
getState64231852872126
initialActions107226
loadScripts8396521038958941012
setupStore1564571930
numNetworkReqs41281523430144
BrowserifyPower User HomeuiStartup22511623290128524792779
load1015882155414710111407
domContentLoaded100087715221479841401
domInteractive36171673432140
firstPaint5459615584139491395
backgroundConnect24820259188229548
firstReactRender6146112136791
getState19413369890196259
initialActions108112
loadScripts79468013001437761196
setupStore227121142547
numNetworkReqs1446943176193277
WebpackStandard HomeuiStartup86172914551188741149
load645561107692680836
domContentLoaded641558106891675830
domInteractive2716122252097
firstPaint24787841176235673
backgroundConnect95193916
firstReactRender3620107173784
getState4916149246395
initialActions102112
loadScripts638556105889673818
setupStore16765121640
numNetworkReqs41271483430142
WebpackPower User HomeuiStartup18501296273029020802311
load6825941211110678957
domContentLoaded6715881203109665951
domInteractive35171783132124
firstPaint2881091017219284818
backgroundConnect102867220021627
firstReactRender63459297079
getState194133718106180315
initialActions104112
loadScripts6685861192108663940
setupStore211072132349
numNetworkReqs1536842579204346
FirefoxBrowserifyStandard HomeuiStartup14861241207018315681844
load1124972146910812011324
domContentLoaded1122967146910811991323
domInteractive68313565286198
firstPaint------
backgroundConnect73313385189184
firstReactRender28195583151
getState2412129132445
initialActions203123
loadScripts1092956143910311551307
setupStore3192654323109
numNetworkReqs40281292834123
BrowserifyPower User HomeuiStartup26311803355533228013290
load11661003162815211831521
domContentLoaded1166996162715211831520
domInteractive13141530108124457
firstPaint------
backgroundConnect14030874127139386
firstReactRender67401271770104
getState29474966225381817
initialActions217126
loadScripts1132970160214411491476
setupStore20013843203252670
numNetworkReqs101583306379238
WebpackStandard HomeuiStartup16521375233120117292168
load12931125177311813561494
domContentLoaded12931125177311713561493
domInteractive61282543983130
firstPaint------
backgroundConnect62212213866143
firstReactRender332195113754
getState258147212469
initialActions217123
loadScripts12681109174911213311464
setupStore3191993723131
numNetworkReqs40281262737124
WebpackPower User HomeuiStartup29592204600078929274640
load14841158325946815052761
domContentLoaded14841158325946815052761
domInteractive114301017132100398
firstPaint------
backgroundConnect1583611712161551008
firstReactRender70403414170146
getState320611221275518891
initialActions207227
loadScripts14091139309936814742486
setupStore1127696134130450
numNetworkReqs97622505379240
📊 Page Load Benchmark Results

Current Commit: 0c67149 | Date: 11/26/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±71ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 728ms (±69ms) 🟢 | historical mean value: 720ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 75ms (±12ms) 🟢 | historical mean value: 78ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 71ms 1.00s 1.31s 1.29s 1.31s
domContentLoaded 728ms 69ms 695ms 991ms 956ms 991ms
firstPaint 75ms 12ms 56ms 172ms 84ms 172ms
firstContentfulPaint 75ms 12ms 56ms 172ms 84ms 172ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: -137 Bytes (0%)
  • ui: -547 Bytes (-0.01%)
  • common: 8.22 KiB (0.09%)

micaelae
micaelae previously approved these changes Nov 26, 2025
@bergarces bergarces dismissed stale reviews from micaelae and Prithpal-Sooriya via 72dc005 November 27, 2025 09:06
@metamaskbot
Copy link
Collaborator

Builds ready [72dc005]
UI Startup Metrics (1299 ± 122 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12991034171512213731504
load1047865144710911281235
domContentLoaded1041859144110911221231
domInteractive2815202252282
firstPaint54885146441610031175
backgroundConnect21519625112221243
firstReactRender382377114462
getState65181642874128
initialActions109215
loadScripts83265912191069041023
setupStore1575261925
numNetworkReqs41281503430142
BrowserifyPower User HomeuiStartup21291754282123922482636
load1067935149612610891425
domContentLoaded1052925148912710771416
domInteractive36181742736102
firstPaint605102143940610211190
backgroundConnect25620863083243511
firstReactRender6544120157199
getState19913584174205278
initialActions109112
loadScripts83270512751278471204
setupStore231175122649
numNetworkReqs103652644798235
WebpackStandard HomeuiStartup86371712271118921115
load64256789086655834
domContentLoaded63756388386648827
domInteractive27151092421101
firstPaint226104853155212620
backgroundConnect1053061128
firstReactRender3822156213973
getState4716103226195
initialActions106112
loadScripts63456187484645817
setupStore167166171739
numNetworkReqs41291463331141
WebpackPower User HomeuiStartup16781309239328919732225
load6825811103110680978
domContentLoaded6725741095110672971
domInteractive37181663433135
firstPaint310761003230367886
backgroundConnect44756210618353
firstReactRender63469296878
getState17913368054180222
initialActions104112
loadScripts6695721085108670961
setupStore231053133448
numNetworkReqs1686543087220419
FirefoxBrowserifyStandard HomeuiStartup15491234201118516741957
load1181962155012612451446
domContentLoaded1180962154912612451446
domInteractive74312033695142
firstPaint------
backgroundConnect79273035498182
firstReactRender29206293251
getState2611104152658
initialActions207123
loadScripts1138944147711112101369
setupStore34121903633138
numNetworkReqs40281272737119
BrowserifyPower User HomeuiStartup25912056425641127323639
load11611020154813511611470
domContentLoaded11601020154813511611470
domInteractive12635542105116403
firstPaint------
backgroundConnect1203456085127349
firstReactRender5838150146286
getState28685922206332797
initialActions207123
loadScripts1128980152413311291450
setupStore1465753161180487
numNetworkReqs99583175878232
WebpackStandard HomeuiStartup16761388231117817702006
load13021101165510113711484
domContentLoaded13021100165410113711484
domInteractive69271663289125
firstPaint------
backgroundConnect70282754087137
firstReactRender332190113856
getState2912250352496
initialActions214123
loadScripts1272108715829413461412
setupStore2710148252281
numNetworkReqs41281282737121
WebpackPower User HomeuiStartup29942019515074730704780
load15201167316046516132703
domContentLoaded15201167316046516122702
domInteractive137291062174111466
firstPaint------
backgroundConnect1713114512491381008
firstReactRender66402082966115
getState30865946238418837
initialActions2036323
loadScripts14351128293337315682483
setupStore15661292219181667
numNetworkReqs100502516078247
📊 Page Load Benchmark Results

Current Commit: 72dc005 | Date: 11/27/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.06s (±72ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 740ms (±70ms) 🟢 | historical mean value: 723ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 77ms (±13ms) 🟢 | historical mean value: 78ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.06s 72ms 1.02s 1.35s 1.27s 1.35s
domContentLoaded 740ms 70ms 703ms 1.02s 944ms 1.02s
firstPaint 77ms 13ms 60ms 196ms 88ms 196ms
firstContentfulPaint 77ms 13ms 60ms 196ms 88ms 196ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: -131 Bytes (0%)
  • ui: -613 Bytes (-0.01%)
  • common: 8.21 KiB (0.09%)

@metamaskbot
Copy link
Collaborator

Builds ready [11888a4]
UI Startup Metrics (1267 ± 111 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12671040165211113181485
load101085313109610591203
domContentLoaded100485112999410521187
domInteractive2514114202076
firstPaint5307712234039701199
backgroundConnect21119225512218234
firstReactRender392371114761
getState63221622972123
initialActions104113
loadScripts799646107792847985
setupStore1553971728
numNetworkReqs41281463332142
BrowserifyPower User HomeuiStartup20481692318828421532627
load1020877177814210111384
domContentLoaded100587117511429981375
domInteractive36162123235127
firstPaint57114917854009591247
backgroundConnect23920155173226479
firstReactRender5741120136182
getState18714070357199227
initialActions105112
loadScripts79967015201407911166
setupStore211197132344
numNetworkReqs1436141377204278
WebpackStandard HomeuiStartup85972714701138821101
load63756196582658822
domContentLoaded63255795882653816
domInteractive2615126232087
firstPaint204100849131192580
backgroundConnect1064171127
firstReactRender3621234273666
getState5022155246198
initialActions106112
loadScripts63055594880651808
setupStore15560101640
numNetworkReqs41281483330142
WebpackPower User HomeuiStartup16451289236326217352203
load694593106298691964
domContentLoaded684586105399681956
domInteractive39171683535135
firstPaint288100987189276691
backgroundConnect44863411119270
firstReactRender63488586780
getState1799565452182226
initialActions102112
loadScripts681585104397679947
setupStore21752112448
numNetworkReqs1666942383214399
FirefoxBrowserifyStandard HomeuiStartup14301140190416815651766
load109692913929811621286
domContentLoaded109692913929811621286
domInteractive65311793487126
firstPaint------
backgroundConnect68242354986177
firstReactRender281969103249
getState2611198272345
initialActions203123
loadScripts106391413008611161241
setupStore327300393398
numNetworkReqs39281302634122
BrowserifyPower User HomeuiStartup26081848448344927713657
load12001015239419412211563
domContentLoaded11991014239419412211563
domInteractive13034549106127404
firstPaint------
backgroundConnect123361021113129268
firstReactRender5938147186199
getState26564890195305770
initialActions218123
loadScripts1161972196516811921509
setupStore19115804226249737
numNetworkReqs100592965792244
WebpackStandard HomeuiStartup16441387202716517571968
load12891120160410513591498
domContentLoaded12891120160410413591496
domInteractive67272044194151
firstPaint------
backgroundConnect66182323481125
firstReactRender3221135123446
getState239130162447
initialActions203123
loadScripts1258109815729813281440
setupStore2710195282384
numNetworkReqs41281332740121
WebpackPower User HomeuiStartup31342275511966733194782
load15401213311537016142639
domContentLoaded15401213311437016142639
domInteractive12734644130108499
firstPaint------
backgroundConnect178301361199161459
firstReactRender72422173074139
getState29284873214397776
initialActions3111237
loadScripts14741182294530815402082
setupStore1256758146131506
numNetworkReqs99522645977242
📊 Page Load Benchmark Results

Current Commit: 11888a4 | Date: 11/27/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±69ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 728ms (±67ms) 🟢 | historical mean value: 725ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±11ms) 🟢 | historical mean value: 78ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 69ms 1.00s 1.31s 1.24s 1.31s
domContentLoaded 728ms 67ms 693ms 988ms 920ms 988ms
firstPaint 76ms 11ms 60ms 172ms 88ms 172ms
firstContentfulPaint 76ms 11ms 60ms 172ms 88ms 172ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: -131 Bytes (0%)
  • ui: -613 Bytes (-0.01%)
  • common: 8.21 KiB (0.09%)

@metamaskbot
Copy link
Collaborator

Builds ready [bd06391]
UI Startup Metrics (1227 ± 108 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12271018152210813091415
load103386913089511001219
domContentLoaded102886613039410951200
domInteractive2515128212184
firstPaint4328412553658881123
backgroundConnect21419425012221238
firstReactRender301966103351
getState3416121163764
initialActions103112
loadScripts820664107593884998
setupStore1172831218
numNetworkReqs1257720573
BrowserifyPower User HomeuiStartup20801727272824922312629
load1014895151113910071396
domContentLoaded100089015041399911387
domInteractive37191423133123
firstPaint59710215023959681359
backgroundConnect266204740120228512
firstReactRender6039121156493
getState19813965283204247
initialActions105114
loadScripts79468612971397821177
setupStore211159102344
numNetworkReqs1536940780206341
WebpackStandard HomeuiStartup836710114779870998
load65256991776697816
domContentLoaded64756691175693810
domInteractive2715147242294
firstPaint23594805169213640
backgroundConnect105698928
firstReactRender27214263238
getState251250103245
initialActions103112
loadScripts64456390273690801
setupStore1062031217
numNetworkReqs1257721576
WebpackPower User HomeuiStartup16271284250827018922157
load6685811272100673904
domContentLoaded6585751265101660899
domInteractive37181973434132
firstPaint263951271174260648
backgroundConnect56759013818549
firstReactRender60448796781
getState17413469355178208
initialActions103112
loadScripts6565731256100657891
setupStore20965122249
numNetworkReqs1696743283217399
FirefoxBrowserifyStandard HomeuiStartup12891066226816413631549
load1063909205513611081289
domContentLoaded1063909205513611081289
domInteractive7533110610894110
firstPaint------
backgroundConnect49231673168116
firstReactRender24174972543
getState126213211022
initialActions102022
loadScripts1035893203513010801201
setupStore12564111035
numNetworkReqs1256517662
BrowserifyPower User HomeuiStartup26501927494664228034184
load1196940269931911501923
domContentLoaded1195934269831911491923
domInteractive11533617111106422
firstPaint------
backgroundConnect128281166170113377
firstReactRender59361401864100
getState25958994218272822
initialActions207123
loadScripts1139924226723811191568
setupStore15381251199155593
numNetworkReqs102593146379246
WebpackStandard HomeuiStartup15231289187314016141814
load1259108615609713231434
domContentLoaded1259108615599713231434
domInteractive68271593394122
firstPaint------
backgroundConnect52201933260115
firstReactRender27209183038
getState177180261451
initialActions103122
loadScripts1230107215399012971377
setupStore146110151346
numNetworkReqs1156916757
WebpackPower User HomeuiStartup29642035490570631184678
load14991169301545715582789
domContentLoaded14991168301445715572789
domInteractive1272999516995484
firstPaint------
backgroundConnect1833112612731471095
firstReactRender65372913165125
getState33967910253546849
initialActions2035323
loadScripts13961145276933513552206
setupStore1539758189152622
numNetworkReqs100612545978240
📊 Page Load Benchmark Results

Current Commit: bd06391 | Date: 11/28/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±72ms) 🟡 | historical mean value: 1.03s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 731ms (±69ms) 🟢 | historical mean value: 717ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±12ms) 🟢 | historical mean value: 77ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 72ms 1.00s 1.33s 1.26s 1.33s
domContentLoaded 731ms 69ms 695ms 992ms 938ms 992ms
firstPaint 76ms 12ms 60ms 184ms 84ms 184ms
firstContentfulPaint 76ms 12ms 60ms 184ms 84ms 184ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: -144 Bytes (0%)
  • ui: -621 Bytes (-0.01%)
  • common: 8.21 KiB (0.09%)

@bergarces bergarces added this pull request to the merge queue Nov 28, 2025
Merged via the queue into main with commit 7a635b1 Nov 28, 2025
176 checks passed
@bergarces bergarces deleted the prices-v3-upgrade branch November 28, 2025 10:46
@github-actions github-actions bot locked and limited conversation to collaborators Nov 28, 2025
@metamaskbot metamaskbot added the release-13.13.0 Issue or pull request that will be included in release 13.13.0 label Nov 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.13.0 Issue or pull request that will be included in release 13.13.0 size-L team-assets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants