-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
fix: incorrect standard swap gas fee estimation #28127
fix: incorrect standard swap gas fee estimation #28127
Conversation
The core problem shown in the issue video is that the estimated gas fee in 12.6 is substantially less than in 12.5, to the point that when we get an insufficient fee response from the smart transaction API, it doesn't make sense since our displayed max fee is less than our total balance. This PR resolves that specific problem. I think you've also identified a separate pre-existing issue in the
Meaning this PR should fix the regression from version 12.5, though I believe the misleading math you identified is out of scope. We could try verify the above theory by repeating your steps on 12.5? |
Builds ready [899a36f]
Page Load Metrics (1931 ± 91 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Ok, I was able to repro on 12.5 and made a ticket to tackle the underlying issue. PR lgtm. |
Missing release label release-12.6.0 on PR. Adding release label release-12.6.0 on PR and removing other release labels(release-12.7.0), as PR was cherry-picked in branch 12.6.0. |
Description
Fix incorrect non-smart gas fee estimations due to the use of an empty estimated base fee.
Related issues
Fixes: #28088
Manual testing steps
See issue.
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist