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

Uniswap v3 swappa pair #35

Closed
wants to merge 6 commits into from
Closed

Conversation

diwu1989
Copy link
Contributor

@diwu1989 diwu1989 commented May 8, 2022

I dumped all of the relevant helper math libraries into the uniswap folder.
The official Univ3 Quoter is very gas inefficient:
https://github.com/Uniswap/v3-periphery/blob/main/contracts/lens/Quoter.sol

My quoter library is a lot more gas efficient because it doesn't try to do + revert the unnecessary state + oracle writes.
TickLens is also mutated into a library and bulk active tick reading logic is baked into the swappa pair for accelerated refresh.

@diwu1989
Copy link
Contributor Author

@zviadm zviadm closed this Jul 15, 2023
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