Skip to content

Conversation

@micaelae
Copy link
Member

@micaelae micaelae commented Dec 8, 2025

Description

Open in GitHub Codespaces

Changelog

CHANGELOG entry: fix: swap experience incorrectly estimates gas required for trades

Related issues

Fixes: #38646

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

After and Before

Screenshot 2025-12-08 at 9 25 47 AM

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.

@metamaskbot metamaskbot added the team-swaps-and-bridge Swaps and Bridge team label Dec 8, 2025
@github-actions github-actions bot added the size-S label Dec 8, 2025
@micaelae
Copy link
Member Author

micaelae commented Dec 8, 2025

@metamaskbot update-policies

@metamaskbot
Copy link
Collaborator

Policies updated.
👀 Please review the diff for suspicious new powers.

🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff

@metamaskbot
Copy link
Collaborator

metamaskbot commented Dec 8, 2025

✨ Files requiring CODEOWNER review ✨

📜 @MetaMask/policy-reviewers (5 files, +5 -336)
  • 📁 lavamoat/
    • 📁 browserify/
      • 📁 beta/
        • 📄 policy.json +1 -82
      • 📁 experimental/
        • 📄 policy.json +1 -82
      • 📁 flask/
        • 📄 policy.json +1 -82
      • 📁 main/
        • 📄 policy.json +1 -82
    • 📁 webpack/
      • 📁 mv2/
        • 📄 policy.json +1 -8

Tip

Follow the policy review process outlined in the LavaMoat Policy Review Process doc before expecting an approval from Policy Reviewers.


🔄 @MetaMask/swaps-engineers (4 files, +76 -76)
  • 📁 test/
    • 📁 e2e/
      • 📁 tests/
        • 📁 bridge/
          • 📄 swap-positive-cases.spec.ts +2 -2
  • 📁 ui/
    • 📁 ducks/
      • 📁 bridge/
        • 📁 __snapshots__/
          • 📄 selectors.test.ts.snap +57 -57
          • 📄 selectors.test.ts +15 -15
          • 📄 selectors.ts +2 -2

@metamaskbot
Copy link
Collaborator

Builds ready [a6a078c]
UI Startup Metrics (1281 ± 93 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1281105216889313401418
load105887613177910991190
domContentLoaded105187113107910951181
domInteractive22164372438
firstPaint53982127142410421139
backgroundConnect21820026412223246
firstReactRender472997155977
getState3616140204158
initialActions104113
loadScripts840668106476878947
setupStore1263141422
numNetworkReqs86306629
BrowserifyPower User HomeuiStartup18691644224611219462017
load1083902128610511801251
domContentLoaded1072894127710411701236
domInteractive25178592743
firstPaint56592126443110671233
backgroundConnect259202679105239523
firstReactRender43356464457
getState19314228829212247
initialActions102112
loadScripts86068610661069591024
setupStore17105791637
numNetworkReqs69492071967112
WebpackStandard HomeuiStartup831710100351862912
load64156776752681733
domContentLoaded63656276252678729
domInteractive21154162239
firstPaint22387752159202631
backgroundConnect1263681330
firstReactRender63341924495145
getState24134793142
initialActions104112
loadScripts63356076052676727
setupStore1072341219
numNetworkReqs86307630
WebpackPower User HomeuiStartup14191157206417014821791
load69558894680733872
domContentLoaded68958294179727865
domInteractive241677102548
firstPaint25493857186234691
backgroundConnect56663410065222
firstReactRender45395944753
getState18014066258180262
initialActions103111
loadScripts68658093078725863
setupStore1675491435
numNetworkReqs6755199166697
FirefoxBrowserifyStandard HomeuiStartup13051130179113113761538
load107995714909511081290
domContentLoaded107995714909511081289
domInteractive56321752670105
firstPaint------
backgroundConnect3818136224089
firstReactRender38307893960
getState1072421013
initialActions103012
loadScripts105594214669010871229
setupStore116210201013
numNetworkReqs86265724
BrowserifyPower User HomeuiStartup26531668357561231673439
load1611990262256021752449
domContentLoaded1611990262156021752449
domInteractive10333106119575238
firstPaint------
backgroundConnect2022312142771991071
firstReactRender5435118145691
getState1478132449176249
initialActions2042523
loadScripts1506975253052120582328
setupStore664117714247302
numNetworkReqs70361361674104
WebpackStandard HomeuiStartup15171289200814315921827
load1222107116948312661345
domContentLoaded1222107116938212661345
domInteractive51261592871110
firstPaint------
backgroundConnect46191933047113
firstReactRender4333102114756
getState2181893317117
initialActions103123
loadScripts1197105516327812461316
setupStore186158241361
numNetworkReqs86276825
WebpackPower User HomeuiStartup27771810365855432353448
load18541133264851222982522
domContentLoaded18541133264851222982522
domInteractive11529114822081973
firstPaint------
backgroundConnect1882511622661901037
firstReactRender5734117146187
getState1416832550170236
initialActions216123
loadScripts17441107254748522162489
setupStore434106011426162
numNetworkReqs71351411672116
📊 Page Load Benchmark Results

Current Commit: a6a078c | Date: 12/8/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±58ms) 🟡 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 721ms (±53ms) 🟢 | historical mean value: 730ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±15ms) 🟢 | historical mean value: 78ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 58ms 998ms 1.37s 1.12s 1.37s
domContentLoaded 721ms 53ms 691ms 1.02s 768ms 1.02s
firstPaint 76ms 15ms 60ms 208ms 84ms 208ms
firstContentfulPaint 76ms 15ms 60ms 208ms 84ms 208ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -155.04 KiB (-2.94%)
  • ui: 1 Bytes (0%)
  • common: 428 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [0f49812]
UI Startup Metrics (1247 ± 97 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1247102015439713041396
load102284812818110681140
domContentLoaded101584312447910581131
domInteractive21154372236
firstPaint4697612713849641123
backgroundConnect21419226715222245
firstReactRender4430103144679
getState3816118214394
initialActions104111
loadScripts808647101973853921
setupStore1274451319
numNetworkReqs86316629
BrowserifyPower User HomeuiStartup------
load------
domContentLoaded------
domInteractive------
firstPaint------
backgroundConnect------
firstReactRender------
getState------
initialActions------
loadScripts------
setupStore------
numNetworkReqs------
WebpackStandard HomeuiStartup832705116862855941
load65057186759690755
domContentLoaded64556686159685748
domInteractive21155072239
firstPaint22079755168199684
backgroundConnect1063571028
firstReactRender58331653951151
getState2313110122843
initialActions104112
loadScripts64356485959683746
setupStore1062741123
numNetworkReqs86337630
WebpackPower User HomeuiStartup15191234188614916301773
load75761996387835907
domContentLoaded74961395786819901
domInteractive27176682846
firstPaint31497925250289892
backgroundConnect4475759031203
firstReactRender49416955060
getState20714465365237318
initialActions103112
loadScripts74761195586817898
setupStore14103761434
numNetworkReqs67561101266101
FirefoxBrowserifyStandard HomeuiStartup13831159193913314541666
load112599715019411731293
domContentLoaded112599115019411731293
domInteractive70332143487135
firstPaint------
backgroundConnect48181973057107
firstReactRender40327384060
getState1289291225
initialActions103122
loadScripts109698214598611391274
setupStore11599101122
numNetworkReqs86265724
BrowserifyPower User HomeuiStartup26751598414663331813460
load1655995253155922072396
domContentLoaded1655994253155822072395
domInteractive10832118821975943
firstPaint------
backgroundConnect13228994120173275
firstReactRender5635176176087
getState1376927443163222
initialActions2137423
loadScripts1590973242252521002341
setupStore705116219352266
numNetworkReqs7051641971117
WebpackStandard HomeuiStartup15131309194712615931765
load1232107815928412801371
domContentLoaded1231107815928412791370
domInteractive60282724180151
firstPaint------
backgroundConnect4419143224793
firstReactRender41339594252
getState177116171628
initialActions102122
loadScripts1209105915678312571342
setupStore125109111222
numNetworkReqs86275725
WebpackPower User HomeuiStartup27701820366956432173440
load18021168282851622922489
domContentLoaded18021167282751622922489
domInteractive146281132279741029
firstPaint------
backgroundConnect1933011452542121041
firstReactRender5738139136085
getState1458034551181254
initialActions3043527
loadScripts17271151271048721872427
setupStore614116813936315
numNetworkReqs71571361868118
📊 Page Load Benchmark Results

Current Commit: 0f49812 | Date: 12/8/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±40ms) 🟡 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 720ms (±38ms) 🟢 | historical mean value: 730ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±9ms) 🟢 | historical mean value: 78ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 40ms 1.00s 1.33s 1.08s 1.33s
domContentLoaded 720ms 38ms 693ms 1.00s 759ms 1.00s
firstPaint 76ms 9ms 64ms 152ms 88ms 152ms
firstContentfulPaint 76ms 9ms 64ms 152ms 88ms 152ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -155.04 KiB (-2.94%)
  • ui: 1 Bytes (0%)
  • common: 428 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [8640b45]
UI Startup Metrics (1321 ± 107 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup13211094175110713781561
load108091114469411261256
domContentLoaded107390614309211181249
domInteractive24157192441
firstPaint57981128242510761143
backgroundConnect22819532119238258
firstReactRender4331110124466
getState3516116174269
initialActions105112
loadScripts852691115485898998
setupStore1374961325
numNetworkReqs86306630
BrowserifyPower User HomeuiStartup18751622213210919422038
load1077883131710811741236
domContentLoaded1066877130610711651229
domInteractive25176892646
firstPaint52194124640710011201
backgroundConnect267197632110240545
firstReactRender42345644353
getState18514030725198231
initialActions102012
loadScripts85367710831099581021
setupStore1785381535
numNetworkReqs67561131366106
WebpackStandard HomeuiStartup836705105269869967
load65257091267688784
domContentLoaded64756690567685780
domInteractive21154372238
firstPaint23085911180197686
backgroundConnect1153971327
firstReactRender58342444650177
getState23136592940
initialActions105111
loadScripts64456490367680778
setupStore1063741116
numNetworkReqs86317630
WebpackPower User HomeuiStartup14381128193415715361733
load70156590084752864
domContentLoaded69455789183741855
domInteractive2515146152454
firstPaint31493905233301831
backgroundConnect61854610770213
firstReactRender47406954958
getState19614564760215295
initialActions103112
loadScripts69155588983738854
setupStore1363961332
numNetworkReqs66552051865107
FirefoxBrowserifyStandard HomeuiStartup12541056175913213271507
load102790614488610681184
domContentLoaded102790614488610641184
domInteractive54312343174108
firstPaint------
backgroundConnect3821244264274
firstReactRender34286053546
getState10694101017
initialActions102112
loadScripts100489014238010381159
setupStore12695131021
numNetworkReqs86275724
BrowserifyPower User HomeuiStartup24651603323053329223165
load1555979230448420242204
domContentLoaded1555979230348420242204
domInteractive833594712674146
firstPaint------
backgroundConnect168271066235175993
firstReactRender5335188165575
getState1405697294167208
initialActions218123
loadScripts1445961221344618862091
setupStore77798813465330
numNetworkReqs69541271767118
WebpackStandard HomeuiStartup16091409193810816731858
load1313115815257413651433
domContentLoaded1313115815257413651433
domInteractive66292314188140
firstPaint------
backgroundConnect51231682856116
firstReactRender44369184556
getState159158151722
initialActions102022
loadScripts1288114014857113391405
setupStore1365971325
numNetworkReqs86295725
WebpackPower User HomeuiStartup28171761421359532433526
load18951188296851223092562
domContentLoaded18951187296851223082562
domInteractive153281611313791046
firstPaint------
backgroundConnect1622411622261761045
firstReactRender5640180205795
getState146811066110169250
initialActions208123
loadScripts18051164294248622162407
setupStore2942464228150
numNetworkReqs69401201472106
📊 Page Load Benchmark Results

Current Commit: 8640b45 | Date: 12/8/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.05s (±42ms) 🟡 | historical mean value: 1.05s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 732ms (±39ms) 🟢 | historical mean value: 730ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 79ms (±12ms) 🟢 | historical mean value: 78ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.05s 42ms 1.03s 1.38s 1.08s 1.38s
domContentLoaded 732ms 39ms 711ms 1.04s 757ms 1.04s
firstPaint 79ms 12ms 64ms 188ms 84ms 188ms
firstContentfulPaint 79ms 12ms 64ms 188ms 84ms 188ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -155.04 KiB (-2.94%)
  • ui: 1 Bytes (0%)
  • common: 428 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [2281f02]
UI Startup Metrics (1242 ± 83 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1242103615368312881381
load101986212136810541159
domContentLoaded101385912066710481151
domInteractive21154162137
firstPaint4547612163819751086
backgroundConnect21119323710215232
firstReactRender5233243245882
getState3817128194477
initialActions104113
loadScripts808666100665843939
setupStore1274661421
numNetworkReqs86306629
BrowserifyPower User HomeuiStartup18661638265615619462139
load1064898147010211341231
domContentLoaded1055890146310211231223
domInteractive25176082644
firstPaint531101123741010421185
backgroundConnect270197727134230634
firstReactRender47396854958
getState18114030428193235
initialActions102112
loadScripts84569312151019151012
setupStore1694281437
numNetworkReqs70582092367106
WebpackStandard HomeuiStartup8917471063699321023
load68158889366720795
domContentLoaded67558087966715789
domInteractive23165072340
firstPaint24891804191212715
backgroundConnect1263981433
firstReactRender66362475267214
getState271580113649
initialActions104112
loadScripts67257887766712786
setupStore1274761425
numNetworkReqs86306629
WebpackPower User HomeuiStartup14761166193717016311794
load73059899892789896
domContentLoaded72359198792784887
domInteractive271781112753
firstPaint30897907225286775
backgroundConnect73764413391557
firstReactRender49427865061
getState19014736142200304
initialActions102111
loadScripts72058898591781884
setupStore1494061334
numNetworkReqs67571071166100
FirefoxBrowserifyStandard HomeuiStartup12681066173611013241483
load103689614507210811141
domContentLoaded103689214507210811140
domInteractive5632133248295
firstPaint------
backgroundConnect362195173972
firstReactRender36306063851
getState1072531020
initialActions102012
loadScripts101288014246910511118
setupStore105103101021
numNetworkReqs86275724
BrowserifyPower User HomeuiStartup25951583336759231013290
load1662952238953221532319
domContentLoaded1662952238853221532319
domInteractive120311072247741014
firstPaint------
backgroundConnect168241258228178976
firstReactRender5536107135990
getState145611014101163215
initialActions2050523
loadScripts1586934236951120472274
setupStore414105411625223
numNetworkReqs6956116137097
WebpackStandard HomeuiStartup15181309202914615881841
load1228106216158812681421
domContentLoaded1228106116158812681421
domInteractive56261413079129
firstPaint------
backgroundConnect44161802945114
firstReactRender41325764553
getState1971462614107
initialActions103122
loadScripts1203104515868412441350
setupStore167153241153
numNetworkReqs86356726
WebpackPower User HomeuiStartup30001989440953634313653
load19731224346349624112583
domContentLoaded19721223346349624102583
domInteractive215342065386911041
firstPaint------
backgroundConnect170321080218188961
firstReactRender63471381665106
getState1469132356178282
initialActions218137
loadScripts19021189344448223012553
setupStore967107015787396
numNetworkReqs71581221768118
📊 Page Load Benchmark Results

Current Commit: 2281f02 | Date: 12/8/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.06s (±63ms) 🟡 | historical mean value: 1.05s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 740ms (±61ms) 🟢 | historical mean value: 734ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 78ms (±11ms) 🟢 | historical mean value: 79ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.06s 63ms 1.01s 1.33s 1.28s 1.33s
domContentLoaded 740ms 61ms 699ms 1.01s 945ms 1.01s
firstPaint 78ms 11ms 60ms 164ms 92ms 164ms
firstContentfulPaint 78ms 11ms 60ms 164ms 92ms 164ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -155.04 KiB (-2.94%)
  • ui: -101.55 KiB (-1.29%)
  • common: 377 Bytes (0%)

@github-actions github-actions bot added size-M and removed size-S labels Dec 8, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [198a5e9]
UI Startup Metrics (1245 ± 89 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1245103715398912951398
load102085513248110591158
domContentLoaded101484813068010551149
domInteractive21154962136
firstPaint57290132141310281138
backgroundConnect21119125812216238
firstReactRender453078124970
getState3317110133958
initialActions1010112
loadScripts810650108575844938
setupStore1173341219
numNetworkReqs86316630
BrowserifyPower User HomeuiStartup18731601229112619592072
load1073901127310011511231
domContentLoaded1064893126010011431220
domInteractive27175782946
firstPaint50210212333959731182
backgroundConnect262199665111239560
firstReactRender46396344955
getState19014829931211252
initialActions102112
loadScripts8526831054999391003
setupStore15104761531
numNetworkReqs68582051965107
WebpackStandard HomeuiStartup82370697749853897
load63956674449678724
domContentLoaded63456073949673721
domInteractive21154162137
firstPaint21472703161194672
backgroundConnect1263781331
firstReactRender51332363446142
getState24134892842
initialActions105112
loadScripts63155873749671719
setupStore1072431117
numNetworkReqs86306629
WebpackPower User HomeuiStartup15121206189915516361799
load768619106599847949
domContentLoaded760612105699837940
domInteractive271790112748
firstPaint31794936242281842
backgroundConnect3685387827153
firstReactRender51437965363
getState20214442546229303
initialActions102012
loadScripts757609105398834938
setupStore15104061436
numNetworkReqs66571061165100
FirefoxBrowserifyStandard HomeuiStartup12431099164211813141493
load100891012446510371133
domContentLoaded100891012446510341132
domInteractive54312353852156
firstPaint------
backgroundConnect3418110173474
firstReactRender37296373855
getState1166781025
initialActions102012
loadScripts98989712206210211103
setupStore124157161030
numNetworkReqs86296724
BrowserifyPower User HomeuiStartup27451748402862032073733
load16841021303654121672420
domContentLoaded16831020303554121662419
domInteractive10032109818473368
firstPaint------
backgroundConnect2072811102702211056
firstReactRender5837112146289
getState1497132152175257
initialActions40468234
loadScripts15861001277750620532375
setupStore675115813855302
numNetworkReqs70521281669118
WebpackStandard HomeuiStartup15941307190110916691784
load1272109315456913261380
domContentLoaded1272109315456913251380
domInteractive58291952980117
firstPaint------
backgroundConnect53192213553130
firstReactRender463497125061
getState1375161420
initialActions103122
loadScripts1244107813656212991345
setupStore167152221329
numNetworkReqs86275725
WebpackPower User HomeuiStartup28191763373955732193538
load18471130253650023112489
domContentLoaded18471129253550023112488
domInteractive207301084351841036
firstPaint------
backgroundConnect1752511922391941011
firstReactRender5937146156296
getState1457742969168288
initialActions3072823
loadScripts17801107247147822482433
setupStore494110012434255
numNetworkReqs71571181867118
📊 Page Load Benchmark Results

Current Commit: 198a5e9 | Date: 12/9/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.06s (±166ms) 🟡 | historical mean value: 1.05s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 747ms (±163ms) 🟢 | historical mean value: 734ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 90ms (±137ms) 🟢 | historical mean value: 79ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.06s 166ms 1.01s 2.58s 1.26s 2.58s
domContentLoaded 747ms 163ms 700ms 2.25s 930ms 2.25s
firstPaint 90ms 137ms 56ms 1.45s 88ms 1.45s
firstContentfulPaint 90ms 137ms 56ms 1.45s 88ms 1.45s
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -155.04 KiB (-2.94%)
  • ui: -101.55 KiB (-1.29%)
  • common: 231 Bytes (0%)

@metamaskbot
Copy link
Collaborator

Builds ready [4c29ae4]
UI Startup Metrics (1260 ± 94 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1260103415579413331411
load103484612398210881190
domContentLoaded102784412298110801179
domInteractive21154972237
firstPaint4607612493849651108
backgroundConnect21619526313222244
firstReactRender463282124873
getState3517110144163
initialActions104112
loadScripts819651100576869964
setupStore1162741321
numNetworkReqs86336629
BrowserifyPower User HomeuiStartup18731629231211319432029
load1076886140310611521236
domContentLoaded1066877134810411441224
domInteractive2616114112843
firstPaint57799235945610601217
backgroundConnect262202639109235547
firstReactRender47396354855
getState18714728228201243
initialActions102012
loadScripts85467311361069301021
setupStore15104361530
numNetworkReqs68561131467110
WebpackStandard HomeuiStartup822707108664844959
load63756279652676737
domContentLoaded63255679152673732
domInteractive20144162038
firstPaint21996745157199663
backgroundConnect1163161227
firstReactRender57322994360136
getState241359102945
initialActions104112
loadScripts62955178952670730
setupStore1063751319
numNetworkReqs86316629
WebpackPower User HomeuiStartup14441164184115915611772
load72058495788753889
domContentLoaded71357995088748882
domInteractive25167792648
firstPaint28483961213259724
backgroundConnect48758510136141
firstReactRender48416854961
getState18913933538209271
initialActions101011
loadScripts71057794887741879
setupStore1475881335
numNetworkReqs6757102116699
FirefoxBrowserifyStandard HomeuiStartup12411076178313812991588
load101590613208010501161
domContentLoaded101490013208010501161
domInteractive51311782762114
firstPaint------
backgroundConnect3820204284099
firstReactRender37306073756
getState12721422922
initialActions102112
loadScripts99389012937410261137
setupStore95283915
numNetworkReqs86265724
BrowserifyPower User HomeuiStartup28211694403356432003568
load17681007298454322252419
domContentLoaded17671007298354322242418
domInteractive187321689363791065
firstPaint------
backgroundConnect1832212102281991014
firstReactRender59411241461102
getState1507733254177256
initialActions3152626
loadScripts1682986296351821382352
setupStore735118317148347
numNetworkReqs70551221767117
WebpackStandard HomeuiStartup15321293196712016011756
load1245109214688112951388
domContentLoaded1244109214688112951388
domInteractive61281823280129
firstPaint------
backgroundConnect43211442249110
firstReactRender423398114359
getState1277381219
initialActions103122
loadScripts1220107814368012711358
setupStore146169211132
numNetworkReqs86275724
WebpackPower User HomeuiStartup27921811380955032193509
load18661177275151723232545
domContentLoaded18661177275051723232545
domInteractive200281220351861056
firstPaint------
backgroundConnect139251086197158423
firstReactRender5739119145996
getState1347345855163245
initialActions2038523
loadScripts17951151255150622852470
setupStore3944687128217
numNetworkReqs71561151571108
📊 Page Load Benchmark Results

Current Commit: 4c29ae4 | Date: 12/9/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.02s (±38ms) 🟡 | historical mean value: 1.05s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 711ms (±36ms) 🟢 | historical mean value: 734ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 75ms (±10ms) 🟢 | historical mean value: 79ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.02s 38ms 1.00s 1.30s 1.06s 1.30s
domContentLoaded 711ms 36ms 691ms 978ms 738ms 978ms
firstPaint 75ms 10ms 56ms 148ms 84ms 148ms
firstContentfulPaint 75ms 10ms 56ms 148ms 84ms 148ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚀 Bundle size reduced!]
  • background: -155.04 KiB (-2.94%)
  • ui: -101.55 KiB (-1.29%)
  • common: 231 Bytes (0%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size-M team-swaps-and-bridge Swaps and Bridge team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Extension is using an over-estimated gas value to gate submission of a Swap txn

3 participants