-
Notifications
You must be signed in to change notification settings - Fork 118
fix: do not show insufficient gas with auto refuel enabled #522
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
base: main
Are you sure you want to change the base?
Conversation
|
Hey! This is your new endpoint: https://d7a7a973.widget-lf15118.pages.dev |
|
Hey! This is your new endpoint: https://67680e58.widget-lf15118.pages.dev |
| const { enabledAutoRefuel } = useSettings(['enabledAutoRefuel']) | ||
| // Do not show the message if gas auto refuel is enabled | ||
| if (enabledAutoRefuel) { | ||
| return null | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is more to it. If the user doesn't have gas on the source chain, this will also hide the message, but we should show it in that case.
We probably need to change something inside the gas insufficiency message hook calculation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the hook 👌
|
Hey! This is your new endpoint: https://eec93c73.widget-lf15118.pages.dev |
|
Hey! This is your new endpoint: https://5e83437a.widget-lf15118.pages.dev |
Which Jira task is linked to this PR?
https://lifi.atlassian.net/browse/LF-15118
Visual showcase (Screenshots or Videos)
Before (playground)


After
Checklist before requesting a review