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: hardcode gas on celo #760

Merged
merged 4 commits into from
Jun 26, 2024
Merged

Conversation

jsy1218
Copy link
Member

@jsy1218 jsy1218 commented Jun 25, 2024

the gas used proprietary SOR algorithm is too low on celo, but tenderly cannot simulate on celo yet to support accurate gas estimate. mobile launch on celo requires a gas used, that will not result in mass onchain swap failure. We determined that routing-api returns a hardcoded 5 million gas used on celo would avoid large onchain swap failures on mobile.

tested locally with uniswap-web source, gas estimate doesn't change: https://app.warp.dev/block/iYh1m8qV3oW917Xa0W9knf
tested locally with uniswap-ios source, gas estimate changed to 5000000: https://app.warp.dev/block/Tjl6BiNxcK1vkr1yDfhARc

Copy link
Member Author

jsy1218 commented Jun 25, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @jsy1218 and the rest of your teammates on Graphite Graphite

@jsy1218 jsy1218 changed the title fix: celo high gas limit fix: hardcode gas on celo Jun 25, 2024
@jsy1218 jsy1218 marked this pull request as ready for review June 25, 2024 18:29
@graphite-app graphite-app bot requested review from a team, cgkol and mikeki June 25, 2024 18:29
Copy link

graphite-app bot commented Jun 25, 2024

Graphite Automations

"Request reviewers once CI passes on routing-api repo" took an action on this PR • (06/25/24)

6 reviewers were added and 1 assignee was added to this PR based on 's automation.

Copy link
Collaborator

@cgkol cgkol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we pelase add a test here? This is similar to zksync right?

Copy link
Member Author

jsy1218 commented Jun 25, 2024

Can we pelase add a test here? This is similar to zksync right?

yes, and also requested by mobile team

@jsy1218 jsy1218 requested a review from cgkol June 25, 2024 18:51
Copy link
Member Author

jsy1218 commented Jun 25, 2024

@cgkol added unit test

Copy link
Collaborator

@cgkol cgkol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TY friend

Copy link
Member Author

jsy1218 commented Jun 26, 2024

Merge activity

  • Jun 25, 10:46 PM EDT: @jsy1218 started a stack merge that includes this pull request via Graphite.
  • Jun 25, 10:46 PM EDT: @jsy1218 merged this pull request with Graphite.

@jsy1218 jsy1218 merged commit c92d7ff into main Jun 26, 2024
5 checks passed
@jsy1218 jsy1218 deleted the jsy1218/route-155-fix-celo-low-gas-estimate branch June 26, 2024 02:46
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants