feat: gas sponsorship improve alerts and remove gas alert#29835
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. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
These changes directly affect the transaction confirmation UI and alert system. SmokeConfirmations is the appropriate tag as it covers transaction confirmation flows, gas fee customization, and EIP-7702 advanced features including gasless transactions. No other tags are needed since:
Performance Test Selection: |
|



Description
This PR contains two fixes related to Gas Sponsorship alerts:
Changelog
CHANGELOG entry: remove gas alerts from confirmation modal in gasless flows
CHANGELOG entry: update copy of 10 MON minimal reserve confirmation alert
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/NEB-951?atlOrigin=eyJpIjoiMDBmNDlhY2E5ZDZiNGQ0NGIwYzNkZGEwMWQ4Y2QxZjYiLCJwIjoiaiJ9
Manual testing steps
Test 1, send MON beyond
10 MONreserve:On Monad (gas sponsored, but 10 MON reserve limit), try to send:
MON.MON- 1.MON- 10.MON-9.999Observe that the 10 MON error message is always displayed first, as opposed as before, and that user cannot proceed with the transaction.
Test 2, removal of network fee warnings:
Screenshots/Recordings
Before
Failing tx:

Send MON beyond 10 MON reserve:

After
Failing tx:

Send MON beyond 10 MON reserve:
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Medium Risk
Changes confirmation alert gating and makes the Monad gas sponsorship reserve-balance warning blocking with a buy-flow action, which can affect whether users can proceed with transactions. Risk is limited to the confirmations alert layer but could impact conversion/flow if conditions are misdetected.
Overview
Prevents the
GasEstimateFailedwarning from showing during gasless/sponsored flows (or while gasless support is still being determined) to avoid redundant/irrelevant gas-limit guidance.Updates the Monad gas sponsorship reserve-balance alert to be blocking and Danger severity, revises its localized copy/title, and adds a CTA that routes to
goToBuy()and rejects the confirmation (skipConfirmation: true). Tests were expanded/updated to cover the new gasless gating and blocking alert behavior.Reviewed by Cursor Bugbot for commit a423cdb. Bugbot is set up for automated code reviews on this repo. Configure here.