Skip to content

fix pool init code hash #413

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

Open
wants to merge 1 commit into
base: 0.8
Choose a base branch
from
Open

fix pool init code hash #413

wants to merge 1 commit into from

Conversation

ashhanai
Copy link

The current PoolAddress library with the updated POOL_INIT_CODE_HASH constant is unusable. I assume that while updating v3 periphery libraries to solc 0.8, the pool init code was recompiled and updated to be in sync with the v3-core 0.8 branch, which made the library unusable in any production code that needs to compute pool addresses deployed from existing Uniswap v3 factories (which were deployed with the previous solc version).

This PR is reverting the POOL_INIT_CODE_HASH constant to the pre-0.8 value that works with all deployed Uniswap v3 factories.

Copy link

@Rayluv29 Rayluv29 left a comment

Choose a reason for hiding this comment

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

True

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