-
Notifications
You must be signed in to change notification settings - Fork 211
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
Save gas and clean the upper bits of computed pool address properly #291
Open
shuhuiluo
wants to merge
10
commits into
Uniswap:main
Choose a base branch
from
shuhuiluo:gas-savings
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Commits on May 6, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e3bf4ea - Browse repository at this point
Copy the full SHA e3bf4eaView commit details
Commits on May 7, 2023
-
Compute pair address using inline assembly in `UniswapV2Library.pairF…
…orPreSorted` and clean the upper bits explicitly saving 500~1000 gas
Configuration menu - View commit details
-
Copy full SHA for 2b2ea49 - Browse repository at this point
Copy the full SHA 2b2ea49View commit details -
Rewrite
V3SwapRouter.computePoolAddress
using inline assembly and c……lean the upper bits at the same gas
Configuration menu - View commit details
-
Copy full SHA for 8deab37 - Browse repository at this point
Copy the full SHA 8deab37View commit details -
Run Hardhat gas snapshot to demonstrate
computePoolAddress
optimiza……tion since there weren't V3 Foundry tests Rewritten `computePoolAddress` saves ~500 gas
Configuration menu - View commit details
-
Copy full SHA for d16a6d9 - Browse repository at this point
Copy the full SHA d16a6d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for b3bfe32 - Browse repository at this point
Copy the full SHA b3bfe32View commit details -
Configuration menu - View commit details
-
Copy full SHA for bade844 - Browse repository at this point
Copy the full SHA bade844View commit details -
Configuration menu - View commit details
-
Copy full SHA for bc568ac - Browse repository at this point
Copy the full SHA bc568acView commit details
Commits on May 9, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 65cad3d - Browse repository at this point
Copy the full SHA 65cad3dView commit details
Commits on May 10, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 68baa9c - Browse repository at this point
Copy the full SHA 68baa9cView commit details
Commits on Jun 5, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 1ff67ff - Browse repository at this point
Copy the full SHA 1ff67ffView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.