Skip to content

fix: tempo useHasInsufficientBalance return false non-7702 cp-13.27.0#41721

Merged
maxime-oe merged 2 commits into
mainfrom
feat/tempo-no-7702-fallback
Apr 16, 2026
Merged

fix: tempo useHasInsufficientBalance return false non-7702 cp-13.27.0#41721
maxime-oe merged 2 commits into
mainfrom
feat/tempo-no-7702-fallback

Conversation

@maxime-oe

@maxime-oe maxime-oe commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

When signing a tx on Tempo:

  • Before the recent Tempo changes, MetaMask assumed that the native token supply was unlimited (RPC returning a balance of ``424242424242...`, which resulted in a degraded - but working in the right conditions - transaction UX.
  • Now that we’ve defined “no native token for Tempo,” native balance is always seen as 0, since we using a 7702 gasless flow, this has only positive impact on UX.
  • However, since Hardware Wallets aren't supported in our gasless flow, we make those fallback to "normal transactions", which is a problem because MetaMask now sees the native balance as always 0 throwing an error.

The issue is that some hardware wallet users may have already interacted with Tempo before the recent changes. On the current Extension release, those users may not be able to transact on Tempo anymore, making it a regression.

This PR introduces a quick fix, strictly scoped to Hardware Wallets on Tempo chains so it doesn't affect other flows. It modifies useHasInsufficientBalance hook to override balance checks on Tempo, and instead do:

  • If gasless/7702 flow, assume no native balance.
  • If "normal flow" (forced when using a Hardware Wallet), assume unlimited balance (retro-compatibility with how it was before).

Description

Changelog

CHANGELOG entry: useHasInsufficientBalance to skip native balance checks on Tempo

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Use Extension on Tempo using an Hardware Wallet.
Transactions should be optimistic, showing an estimate of pathUSD gas fees, regardless of user pathUSD balance.

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

Medium Risk
Introduces chain-specific branching in useHasInsufficientBalance for Tempo networks, which can affect transaction confirmation gating on those chains if the excludeNativeTokenForFee flag is set incorrectly.

Overview
Adjusts useHasInsufficientBalance to special-case Tempo mainnet/testnet (0x1079, 0xa5bf) by bypassing the normal native balance + max-fee sufficiency check when the chain has no native asset.

For these chains, the hook now returns insufficient balance only when excludeNativeTokenForFee is true (gasless/7702), and returns sufficient balance when the flag is unset (legacy/hardware-wallet flow). Tests are updated to cover these behaviors and the Jest console baseline is updated accordingly.

Reviewed by Cursor Bugbot for commit fe6aa2c. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions

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.

@metamaskbot metamaskbot added the team-networks PRs from the Networks team label Apr 14, 2026
@maxime-oe maxime-oe marked this pull request as ready for review April 14, 2026 12:41
@maxime-oe maxime-oe requested a review from a team as a code owner April 14, 2026 12:41
@metamaskbotv2

metamaskbotv2 Bot commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

✨ Files requiring CODEOWNER review ✨

@MetaMask/confirmations (2 files, +67 -7)
  • 📁 ui/
    • 📁 pages/
      • 📁 confirmations/
        • 📁 hooks/
          • 📄 useHasInsufficientBalance.test.ts +49 -1
          • 📄 useHasInsufficientBalance.ts +18 -6

@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.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit f8e83ca. Configure here.

Comment thread ui/pages/confirmations/hooks/useHasInsufficientBalance.ts Outdated
@metamaskbotv2

metamaskbotv2 Bot commented Apr 14, 2026

Copy link
Copy Markdown
Contributor
Builds ready [f8e83ca]
⚡ Performance Benchmarks (Total: 🟢 7 pass · 🟡 12 warn · 🔴 0 fail)

Baseline (latest main): 71bd826 | Date: 10/14/58243 | Pipeline: 24399477786 | Baseline logs

Interaction Benchmarks · Samples: 5
Benchmarkchrome-browserify
loadNewAccount🟡 [Show logs]
confirmTx🟡 [Show logs]
bridgeUserActions🟡 [Show logs]

📈 Results compared to the previous 5 runs on main

  • loadNewAccount/load_new_account: -21%
  • loadNewAccount/total: -21%
  • bridgeUserActions/bridge_load_asset_picker: -41%
  • bridgeUserActions/bridge_search_token: -14%
  • bridgeUserActions/total: -13%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🟡 loadNewAccount/FCP: p75 2.5s
  • 🟡 confirmTx/FCP: p75 2.5s
  • 🟡 bridgeUserActions/FCP: p75 2.6s
Startup Benchmarks · Samples: 100
Benchmarkchrome-browserifychrome-webpackfirefox-browserifyfirefox-webpack
startupStandardHome🟢 [Show logs]🟢 [Show logs]🟢 [Show logs]🟢 [Show logs]
startupPowerUserHome🟡 [Show logs]🟡 [Show logs]🟡 [Show logs]🟡 [Show logs]

📈 Results compared to the previous 5 runs on main

  • startupStandardHome/uiStartup: -18%
  • startupStandardHome/domInteractive: +18%
  • startupStandardHome/backgroundConnect: +18%
  • startupStandardHome/initialActions: -33%
  • startupStandardHome/loadScripts: -12%
  • startupStandardHome/setupStore: +14%
  • startupPowerUserHome/uiStartup: -25%
  • startupPowerUserHome/backgroundConnect: +85%
  • startupPowerUserHome/numNetworkReqs: -53%
  • startupStandardHome/uiStartup: -16%
  • startupStandardHome/load: -11%
  • startupStandardHome/domContentLoaded: -10%
  • startupStandardHome/firstPaint: +23%
  • startupStandardHome/backgroundConnect: -31%
  • startupStandardHome/firstReactRender: -27%
  • startupStandardHome/loadScripts: -11%
  • startupStandardHome/numNetworkReqs: -29%
  • startupPowerUserHome/uiStartup: -23%
  • startupPowerUserHome/numNetworkReqs: +48%
  • startupStandardHome/domInteractive: -48%
  • startupStandardHome/backgroundConnect: +13%
  • startupStandardHome/initialActions: -33%
  • startupStandardHome/numNetworkReqs: -18%
  • startupPowerUserHome/uiStartup: -32%
  • startupPowerUserHome/backgroundConnect: -24%
  • startupPowerUserHome/setupStore: +45%
  • startupStandardHome/uiStartup: -15%
  • startupStandardHome/domInteractive: -37%
  • startupStandardHome/initialActions: -43%
  • startupStandardHome/setupStore: -60%
  • startupStandardHome/numNetworkReqs: -18%
  • startupPowerUserHome/uiStartup: -27%
  • startupPowerUserHome/backgroundConnect: -19%
  • startupPowerUserHome/setupStore: +12%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🔴 startupPowerUserHome/INP: p75 736ms
  • 🔴 startupPowerUserHome/INP: p75 704ms
  • 🟡 startupPowerUserHome/LCP: p75 3.6s
  • 🟡 startupPowerUserHome/INP: p75 248ms
  • 🟡 startupPowerUserHome/LCP: p75 3.7s
User Journey Benchmarks · Samples: 5 · mock API
Benchmarkchrome-browserify
onboardingImportWallet🟢 [Show logs]
onboardingNewWallet🟢 [Show logs]
assetDetails🟡 [Show logs]
solanaAssetDetails🟡 [Show logs]
importSrpHome🟡 [Show logs]
sendTransactions🟡 [Show logs]
swap🟡 [Show logs]

📈 Results compared to the previous 5 runs on main

  • onboardingImportWallet/srpButtonToSrpForm: -85%
  • onboardingImportWallet/metricsToWalletReadyScreen: -36%
  • onboardingImportWallet/doneButtonToHomeScreen: -79%
  • onboardingImportWallet/openAccountMenuToAccountListLoaded: +27%
  • onboardingImportWallet/total: -44%
  • onboardingNewWallet/srpButtonToPwForm: -77%
  • onboardingNewWallet/skipBackupToMetricsScreen: -64%
  • onboardingNewWallet/doneButtonToAssetList: -35%
  • onboardingNewWallet/total: -34%
  • assetDetails/assetClickToPriceChart: -45%
  • assetDetails/total: -45%
  • solanaAssetDetails/assetClickToPriceChart: -71%
  • solanaAssetDetails/total: -71%
  • importSrpHome/openAccountMenuAfterLogin: -78%
  • importSrpHome/homeAfterImportWithNewWallet: -71%
  • importSrpHome/total: -60%
  • sendTransactions/openSendPageFromHome: -19%
  • sendTransactions/selectTokenToSendFormLoaded: -32%
  • sendTransactions/reviewTransactionToConfirmationPage: +34%
  • sendTransactions/total: +31%
  • swap/openSwapPageFromHome: -97%
  • swap/fetchAndDisplaySwapQuotes: +31%
  • swap/total: +11%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🟡 assetDetails/INP: p75 208ms
  • 🟡 assetDetails/FCP: p75 2.5s
  • 🟡 solanaAssetDetails/FCP: p75 2.5s
  • 🟡 importSrpHome/FCP: p75 2.3s
  • 🟡 sendTransactions/INP: p75 224ms
  • 🟡 sendTransactions/FCP: p75 2.4s
  • 🟡 swap/FCP: p75 2.4s
Dapp Page Load Benchmarks · Samples: 100
Benchmarkchrome-browserify
dappPageLoad🟢 [Show logs]
Bundle size diffs
  • background: 58 Bytes (0%)
  • ui: 81 Bytes (0%)
  • common: 20 Bytes (0%)

@metamaskbotv2

metamaskbotv2 Bot commented Apr 14, 2026

Copy link
Copy Markdown
Contributor
Builds ready [603c491]
⚡ Performance Benchmarks (Total: 🟢 7 pass · 🟡 12 warn · 🔴 0 fail)

Baseline (latest main): 71bd826 | Date: 10/14/58243 | Pipeline: 24402798630 | Baseline logs

Interaction Benchmarks · Samples: 5
Benchmarkchrome-browserify
loadNewAccount🟡 [Show logs]
confirmTx🟡 [Show logs]
bridgeUserActions🟡 [Show logs]

📈 Results compared to the previous 5 runs on main

  • bridgeUserActions/bridge_load_page: +13%
  • bridgeUserActions/bridge_load_asset_picker: -31%
  • bridgeUserActions/total: -11%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🟡 loadNewAccount/FCP: p75 2.5s
  • 🟡 confirmTx/FCP: p75 2.5s
  • 🟡 bridgeUserActions/FCP: p75 2.5s
Startup Benchmarks · Samples: 100
Benchmarkchrome-browserifychrome-webpackfirefox-browserifyfirefox-webpack
startupStandardHome🟢 [Show logs]🟢 [Show logs]🟢 [Show logs]🟢 [Show logs]
startupPowerUserHome🟡 [Show logs]🟡 [Show logs]🟡 [Show logs]🟡 [Show logs]

📈 Results compared to the previous 5 runs on main

  • startupStandardHome/uiStartup: -22%
  • startupStandardHome/load: -10%
  • startupStandardHome/domContentLoaded: -12%
  • startupStandardHome/domInteractive: +15%
  • startupStandardHome/backgroundConnect: +13%
  • startupStandardHome/firstReactRender: -10%
  • startupStandardHome/initialActions: -33%
  • startupStandardHome/loadScripts: -16%
  • startupPowerUserHome/uiStartup: -24%
  • startupPowerUserHome/domInteractive: -11%
  • startupPowerUserHome/backgroundConnect: +77%
  • startupPowerUserHome/numNetworkReqs: +12%
  • startupStandardHome/uiStartup: -20%
  • startupStandardHome/load: -15%
  • startupStandardHome/domContentLoaded: -15%
  • startupStandardHome/firstPaint: -12%
  • startupStandardHome/backgroundConnect: -37%
  • startupStandardHome/firstReactRender: -23%
  • startupStandardHome/loadScripts: -15%
  • startupStandardHome/setupStore: -13%
  • startupStandardHome/numNetworkReqs: -29%
  • startupPowerUserHome/uiStartup: -28%
  • startupPowerUserHome/domInteractive: -17%
  • startupPowerUserHome/numNetworkReqs: +47%
  • startupStandardHome/domInteractive: -19%
  • startupStandardHome/backgroundConnect: +17%
  • startupStandardHome/initialActions: +33%
  • startupStandardHome/numNetworkReqs: -18%
  • startupPowerUserHome/uiStartup: -35%
  • startupPowerUserHome/domInteractive: -19%
  • startupPowerUserHome/backgroundConnect: -33%
  • startupPowerUserHome/setupStore: +17%
  • startupStandardHome/domInteractive: -30%
  • startupStandardHome/initialActions: -43%
  • startupStandardHome/setupStore: -50%
  • startupPowerUserHome/uiStartup: -30%
  • startupPowerUserHome/domInteractive: -11%
  • startupPowerUserHome/backgroundConnect: -17%
  • startupPowerUserHome/setupStore: -19%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🔴 startupPowerUserHome/INP: p75 608ms
  • 🔴 startupPowerUserHome/INP: p75 832ms
  • 🟡 startupPowerUserHome/LCP: p75 3.6s
  • 🟡 startupPowerUserHome/LCP: p75 3.6s
User Journey Benchmarks · Samples: 5 · mock API
Benchmarkchrome-browserify
onboardingImportWallet🟢 [Show logs]
onboardingNewWallet🟢 [Show logs]
assetDetails🟡 [Show logs]
solanaAssetDetails🟡 [Show logs]
importSrpHome🟡 [Show logs]
sendTransactions🟡 [Show logs]
swap🟡 [Show logs]

📈 Results compared to the previous 5 runs on main

  • onboardingImportWallet/srpButtonToSrpForm: -85%
  • onboardingImportWallet/confirmSrpToPwForm: -10%
  • onboardingImportWallet/metricsToWalletReadyScreen: -48%
  • onboardingImportWallet/doneButtonToHomeScreen: -75%
  • onboardingImportWallet/openAccountMenuToAccountListLoaded: +26%
  • onboardingImportWallet/total: -44%
  • onboardingNewWallet/srpButtonToPwForm: -78%
  • onboardingNewWallet/skipBackupToMetricsScreen: -66%
  • onboardingNewWallet/doneButtonToAssetList: -22%
  • onboardingNewWallet/total: -24%
  • assetDetails/assetClickToPriceChart: -28%
  • assetDetails/total: -28%
  • solanaAssetDetails/assetClickToPriceChart: -64%
  • solanaAssetDetails/total: -64%
  • importSrpHome/openAccountMenuAfterLogin: -80%
  • importSrpHome/homeAfterImportWithNewWallet: -68%
  • importSrpHome/total: -59%
  • sendTransactions/selectTokenToSendFormLoaded: -19%
  • sendTransactions/reviewTransactionToConfirmationPage: +35%
  • sendTransactions/total: +33%
  • swap/openSwapPageFromHome: -97%
  • swap/fetchAndDisplaySwapQuotes: +32%
  • swap/total: +11%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🟡 assetDetails/INP: p75 224ms
  • 🟡 assetDetails/FCP: p75 2.5s
  • 🟡 solanaAssetDetails/FCP: p75 2.5s
  • 🟡 importSrpHome/INP: p75 208ms
  • 🟡 importSrpHome/FCP: p75 2.5s
  • 🟡 sendTransactions/INP: p75 296ms
  • 🟡 sendTransactions/FCP: p75 2.7s
  • 🟡 swap/FCP: p75 2.7s
  • 🟡 swap/LCP: p75 2.6s
Dapp Page Load Benchmarks · Samples: 100
Benchmarkchrome-browserify
dappPageLoad🟢 [Show logs]
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: -53 Bytes (0%)
  • ui: 2.57 KiB (0.03%)
  • common: 1.09 KiB (0.01%)

@maxime-oe maxime-oe force-pushed the feat/tempo-no-7702-fallback branch from 603c491 to 71875bd Compare April 14, 2026 14:26
@metamaskbotv2

metamaskbotv2 Bot commented Apr 14, 2026

Copy link
Copy Markdown
Contributor
Builds ready [eba87a4]
⚡ Performance Benchmarks (Total: 🟢 7 pass · 🟡 12 warn · 🔴 0 fail)

Baseline (latest main): 71bd826 | Date: 10/14/58243 | Pipeline: 24405469983 | Baseline logs

Interaction Benchmarks · Samples: 5
Benchmarkchrome-browserify
loadNewAccount🟡 [Show logs]
confirmTx🟡 [Show logs]
bridgeUserActions🟡 [Show logs]

📈 Results compared to the previous 5 runs on main

  • loadNewAccount/load_new_account: -22%
  • loadNewAccount/total: -22%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🟡 loadNewAccount/FCP: p75 2.5s
  • 🟡 confirmTx/FCP: p75 2.5s
  • 🟡 bridgeUserActions/FCP: p75 2.5s
Startup Benchmarks · Samples: 100
Benchmarkchrome-browserifychrome-webpackfirefox-browserifyfirefox-webpack
startupStandardHome🟢 [Show logs]🟢 [Show logs]🟢 [Show logs]🟢 [Show logs]
startupPowerUserHome🟡 [Show logs]🟡 [Show logs]🟡 [Show logs]🟡 [Show logs]

📈 Results compared to the previous 5 runs on main

  • startupStandardHome/uiStartup: -26%
  • startupStandardHome/load: -15%
  • startupStandardHome/domContentLoaded: -17%
  • startupStandardHome/firstReactRender: -14%
  • startupStandardHome/initialActions: -33%
  • startupStandardHome/loadScripts: -21%
  • startupStandardHome/numNetworkReqs: -21%
  • startupPowerUserHome/uiStartup: -29%
  • startupPowerUserHome/domInteractive: -11%
  • startupPowerUserHome/backgroundConnect: +100%
  • startupPowerUserHome/numNetworkReqs: -17%
  • startupStandardHome/uiStartup: -20%
  • startupStandardHome/load: -16%
  • startupStandardHome/domContentLoaded: -15%
  • startupStandardHome/backgroundConnect: -37%
  • startupStandardHome/firstReactRender: -23%
  • startupStandardHome/loadScripts: -16%
  • startupStandardHome/setupStore: -13%
  • startupStandardHome/numNetworkReqs: -29%
  • startupPowerUserHome/uiStartup: -25%
  • startupPowerUserHome/numNetworkReqs: +42%
  • startupStandardHome/domInteractive: -26%
  • startupStandardHome/backgroundConnect: +19%
  • startupStandardHome/initialActions: +33%
  • startupStandardHome/numNetworkReqs: -16%
  • startupPowerUserHome/uiStartup: -33%
  • startupPowerUserHome/domInteractive: +11%
  • startupPowerUserHome/backgroundConnect: -28%
  • startupPowerUserHome/firstReactRender: -15%
  • startupPowerUserHome/setupStore: +20%
  • startupStandardHome/uiStartup: -14%
  • startupStandardHome/domInteractive: -57%
  • startupStandardHome/initialActions: -43%
  • startupStandardHome/setupStore: -60%
  • startupStandardHome/numNetworkReqs: -11%
  • startupPowerUserHome/uiStartup: -28%
  • startupPowerUserHome/domInteractive: -14%
  • startupPowerUserHome/backgroundConnect: -22%
  • startupPowerUserHome/setupStore: +26%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🔴 startupPowerUserHome/INP: p75 728ms
  • 🔴 startupPowerUserHome/INP: p75 760ms
  • 🟡 startupPowerUserHome/LCP: p75 3.6s
  • 🟡 startupPowerUserHome/LCP: p75 3.6s
User Journey Benchmarks · Samples: 5 · mock API
Benchmarkchrome-browserify
onboardingImportWallet🟢 [Show logs]
onboardingNewWallet🟢 [Show logs]
assetDetails🟡 [Show logs]
solanaAssetDetails🟡 [Show logs]
importSrpHome🟡 [Show logs]
sendTransactions🟡 [Show logs]
swap🟡 [Show logs]

📈 Results compared to the previous 5 runs on main

  • onboardingImportWallet/srpButtonToSrpForm: -82%
  • onboardingImportWallet/metricsToWalletReadyScreen: -29%
  • onboardingImportWallet/doneButtonToHomeScreen: -77%
  • onboardingImportWallet/openAccountMenuToAccountListLoaded: +26%
  • onboardingImportWallet/total: -43%
  • onboardingNewWallet/srpButtonToPwForm: -77%
  • onboardingNewWallet/skipBackupToMetricsScreen: -67%
  • onboardingNewWallet/doneButtonToAssetList: -24%
  • onboardingNewWallet/total: -26%
  • assetDetails/assetClickToPriceChart: -44%
  • assetDetails/total: -44%
  • solanaAssetDetails/assetClickToPriceChart: -70%
  • solanaAssetDetails/total: -70%
  • importSrpHome/openAccountMenuAfterLogin: -75%
  • importSrpHome/homeAfterImportWithNewWallet: -71%
  • importSrpHome/total: -62%
  • sendTransactions/openSendPageFromHome: -28%
  • sendTransactions/selectTokenToSendFormLoaded: -24%
  • sendTransactions/reviewTransactionToConfirmationPage: +33%
  • sendTransactions/total: +30%
  • swap/openSwapPageFromHome: -97%
  • swap/fetchAndDisplaySwapQuotes: +32%
  • swap/total: +11%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🟡 assetDetails/INP: p75 216ms
  • 🟡 assetDetails/FCP: p75 2.5s
  • 🟡 solanaAssetDetails/FCP: p75 2.5s
  • 🟡 importSrpHome/INP: p75 208ms
  • 🟡 importSrpHome/FCP: p75 2.5s
  • 🟡 sendTransactions/INP: p75 208ms
  • 🟡 sendTransactions/FCP: p75 2.5s
  • 🟡 swap/FCP: p75 2.4s
Dapp Page Load Benchmarks · Samples: 100
Benchmarkchrome-browserify
dappPageLoad🟢 [Show logs]
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: -53 Bytes (0%)
  • ui: 2.91 KiB (0.03%)
  • common: 1.09 KiB (0.01%)

matthewwalsh0
matthewwalsh0 previously approved these changes Apr 15, 2026
Comment thread ui/pages/confirmations/hooks/useHasInsufficientBalance.ts Outdated
Comment thread ui/pages/confirmations/hooks/useHasInsufficientBalance.ts Outdated
@sonarqubecloud

Copy link
Copy Markdown

@metamaskbotv2

metamaskbotv2 Bot commented Apr 15, 2026

Copy link
Copy Markdown
Contributor
Builds ready [fe6aa2c]
⚡ Performance Benchmarks (Total: 🟢 7 pass · 🟡 12 warn · 🔴 0 fail)

Baseline (latest main): 71bd826 | Date: 10/14/58243 | Pipeline: 24450796704 | Baseline logs

Interaction Benchmarks · Samples: 5
Benchmarkchrome-browserify
loadNewAccount🟡 [Show logs]
confirmTx🟡 [Show logs]
bridgeUserActions🟡 [Show logs]

📈 Results compared to the previous 5 runs on main

  • bridgeUserActions/bridge_load_asset_picker: -44%
  • bridgeUserActions/bridge_search_token: -21%
  • bridgeUserActions/total: -23%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🟡 loadNewAccount/FCP: p75 2.8s
  • 🟡 confirmTx/FCP: p75 2.5s
  • 🟡 bridgeUserActions/FCP: p75 2.5s
Startup Benchmarks · Samples: 100
Benchmarkchrome-browserifychrome-webpackfirefox-browserifyfirefox-webpack
startupStandardHome🟢 [Show logs]🟢 [Show logs]🟢 [Show logs]🟢 [Show logs]
startupPowerUserHome🟡 [Show logs]🟡 [Show logs]🟡 [Show logs]🟡 [Show logs]

📈 Results compared to the previous 5 runs on main

  • startupStandardHome/uiStartup: -23%
  • startupStandardHome/load: -11%
  • startupStandardHome/domContentLoaded: -13%
  • startupStandardHome/domInteractive: +14%
  • startupStandardHome/backgroundConnect: +12%
  • startupStandardHome/firstReactRender: -14%
  • startupStandardHome/initialActions: -33%
  • startupStandardHome/loadScripts: -17%
  • startupStandardHome/numNetworkReqs: -21%
  • startupPowerUserHome/uiStartup: -21%
  • startupPowerUserHome/domInteractive: -20%
  • startupPowerUserHome/backgroundConnect: +145%
  • startupPowerUserHome/firstReactRender: -11%
  • startupPowerUserHome/numNetworkReqs: +12%
  • startupStandardHome/uiStartup: -16%
  • startupStandardHome/load: -11%
  • startupStandardHome/domContentLoaded: -11%
  • startupStandardHome/backgroundConnect: -33%
  • startupStandardHome/firstReactRender: -19%
  • startupStandardHome/loadScripts: -11%
  • startupStandardHome/numNetworkReqs: -29%
  • startupPowerUserHome/uiStartup: -25%
  • startupPowerUserHome/domInteractive: -14%
  • startupPowerUserHome/firstPaint: -19%
  • startupPowerUserHome/numNetworkReqs: +50%
  • startupStandardHome/uiStartup: -11%
  • startupStandardHome/domInteractive: -59%
  • startupStandardHome/backgroundConnect: +14%
  • startupStandardHome/initialActions: +33%
  • startupStandardHome/setupStore: +13%
  • startupStandardHome/numNetworkReqs: -18%
  • startupPowerUserHome/uiStartup: -34%
  • startupPowerUserHome/backgroundConnect: -41%
  • startupPowerUserHome/setupStore: +11%
  • startupStandardHome/uiStartup: -10%
  • startupStandardHome/domInteractive: -20%
  • startupStandardHome/initialActions: +14%
  • startupStandardHome/setupStore: -54%
  • startupPowerUserHome/uiStartup: -27%
  • startupPowerUserHome/backgroundConnect: -30%
  • startupPowerUserHome/setupStore: -13%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🔴 startupPowerUserHome/INP: p75 728ms
  • 🔴 startupPowerUserHome/INP: p75 728ms
  • 🟡 startupPowerUserHome/LCP: p75 3.5s
  • 🟡 startupPowerUserHome/LCP: p75 3.8s
User Journey Benchmarks · Samples: 5 · mock API
Benchmarkchrome-browserify
onboardingImportWallet🟢 [Show logs]
onboardingNewWallet🟢 [Show logs]
assetDetails🟡 [Show logs]
solanaAssetDetails🟡 [Show logs]
importSrpHome🟡 [Show logs]
sendTransactions🟡 [Show logs]
swap🟡 [Show logs]

📈 Results compared to the previous 5 runs on main

  • onboardingImportWallet/srpButtonToSrpForm: -85%
  • onboardingImportWallet/metricsToWalletReadyScreen: -36%
  • onboardingImportWallet/doneButtonToHomeScreen: -77%
  • onboardingImportWallet/openAccountMenuToAccountListLoaded: +28%
  • onboardingImportWallet/total: -44%
  • onboardingNewWallet/srpButtonToPwForm: -79%
  • onboardingNewWallet/skipBackupToMetricsScreen: -68%
  • onboardingNewWallet/doneButtonToAssetList: -22%
  • onboardingNewWallet/total: -24%
  • assetDetails/assetClickToPriceChart: -45%
  • assetDetails/total: -45%
  • solanaAssetDetails/assetClickToPriceChart: -74%
  • solanaAssetDetails/total: -74%
  • importSrpHome/openAccountMenuAfterLogin: -76%
  • importSrpHome/homeAfterImportWithNewWallet: -70%
  • importSrpHome/total: -61%
  • sendTransactions/openSendPageFromHome: -41%
  • sendTransactions/selectTokenToSendFormLoaded: -38%
  • sendTransactions/reviewTransactionToConfirmationPage: +34%
  • sendTransactions/total: +31%
  • swap/openSwapPageFromHome: -97%
  • swap/fetchAndDisplaySwapQuotes: +30%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🟡 assetDetails/INP: p75 216ms
  • 🟡 assetDetails/FCP: p75 2.9s
  • 🟡 solanaAssetDetails/FCP: p75 2.5s
  • 🟡 importSrpHome/INP: p75 232ms
  • 🟡 importSrpHome/FCP: p75 2.5s
  • 🟡 sendTransactions/FCP: p75 2.1s
  • 🟡 swap/FCP: p75 2.0s
Dapp Page Load Benchmarks · Samples: 100
Benchmarkchrome-browserify
dappPageLoad🟢 [Show logs]
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 3.45 KiB (0.06%)
  • ui: 13.2 KiB (0.16%)
  • common: 5.98 KiB (0.05%)

@maxime-oe maxime-oe changed the title fix: tempo useHasInsufficientBalance return false non-7702 fix: tempo useHasInsufficientBalance return false non-7702 cp-1.27.0 Apr 15, 2026
@maxime-oe

Copy link
Copy Markdown
Contributor Author

Ran non-reg for non-hardware-wallets:

Non-Reg Test Summary

  1. Account with all tokens

✅ Tempo TX → OK (pathUSD)
✅ Tempo TX → OK (USDCe)
✅ Relay TX → OK (pathUSD)
✅ Relay TX → OK (USDCe)
✅ Send TX → OK (pathUSD)
✅ Send TX → OK (USDCe)
✅ Send TX → OK (USDT0)

  1. Account with no tokens

✅ Tempo TX → OK
✅ Failing TX → OK

  1. Account with only USDCe

✅ Tempo TX → OK
✅ Relay TX → OK
✅ Failing TX → OK

@maxime-oe maxime-oe added this pull request to the merge queue Apr 16, 2026
Merged via the queue into main with commit 2b39db2 Apr 16, 2026
212 checks passed
@maxime-oe maxime-oe deleted the feat/tempo-no-7702-fallback branch April 16, 2026 07:56
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 16, 2026
@maxime-oe maxime-oe changed the title fix: tempo useHasInsufficientBalance return false non-7702 cp-1.27.0 fix: tempo useHasInsufficientBalance return false non-7702 cp-13.27.0 Apr 16, 2026
@metamaskbot metamaskbot added the release-13.28.0 Issue or pull request that will be included in release 13.28.0 label Apr 16, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants