Skip to content
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(bridge): max amount leads to insufficient gas #11147

Closed
wolfderechter opened this issue Jan 6, 2023 · 1 comment · Fixed by #12661
Closed

fix(bridge): max amount leads to insufficient gas #11147

wolfderechter opened this issue Jan 6, 2023 · 1 comment · Fixed by #12661
Assignees

Comments

@wolfderechter
Copy link
Contributor

Describe the bug

When choosing the max to bridge I get an error message insuffienct funds for gas where I then would have to manually deduct the gas needed. Ideally the bridge would automatically deduct the gas needed from the amount, as close as possible.

image

Steps to reproduce

Go to the bridge and click max.

Additional context

Additional context here.

@cyberhorsey
Copy link
Contributor

@shadab-taiko this should be a good one to work on as priority. Can make add a "estimateGas" option in the domain bridge opts and if it's true, don't send the tx but just estimate the gas instead. And we can subtract that amount from the Max balance when button clicked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants