-
Notifications
You must be signed in to change notification settings - Fork 5.4k
feat: adding dapp swap banner #37389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
✨ Files requiring CODEOWNER review ✨✅ @MetaMask/confirmations (6 files, +306 -55)
|
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Results generated automatically by MetaMask CI |
Builds ready [5e6f263]
UI Startup Metrics (1278 ± 84 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Results generated automatically by MetaMask CI |
Builds ready [600b599]
UI Startup Metrics (1312 ± 102 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Results generated automatically by MetaMask CI |
Builds ready [90ad897]
UI Startup Metrics (1282 ± 85 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
ui/pages/confirmations/hooks/transactions/dapp-swap-comparison/useDappSwapComparisonInfo.ts
Show resolved
Hide resolved
Builds ready [16e5664]
UI Startup Metrics (1286 ± 108 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Pull Request is not mergeable
Description
Adding dapp swap banner.
Changelog
CHANGELOG entry:
Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/6107
Manual testing steps
Screenshots/Recordings
Screen.Recording.2025-10-30.at.8.07.24.PM.mov
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Introduces a Uniswap-gated Dapp Swap comparison banner showing estimated savings, powered by new hook computations and supporting locale strings, with tests and styles.
DappSwapComparisonBannerwith toggle (Current vs MetaMask), savings callout, dismiss button, and threshold-based display; gated bydappSwapMetricsand originhttps://app.uniswap.org.dapp-swap-comparison-banner/index.scss.useDappSwapComparisonInfo):selectedQuoteValueDifference,gasDifference,tokenAmountDifference,destinationTokenSymbol.bestFilteredQuotetoselectedQuote; add memo/metric updates and value comparisons; integrate gas/token USD calculations.COMMAND_BYTE_SEAPORT), keep sweep, and add unwrap WETH handling; refinegetDataFromSwapand token address collection.dappSwapAdvantage,dappSwapBenefits,dappSwapQuoteDetails,dappSwapQuoteDifferencetoapp/_locales/en*.json.Written by Cursor Bugbot for commit 16e5664. This will update automatically on new commits. Configure here.