Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

What is the significance of "POOL_INIT_CODE_HASH" ? #141

Open
debo24 opened this issue Aug 17, 2022 · 1 comment
Open

What is the significance of "POOL_INIT_CODE_HASH" ? #141

debo24 opened this issue Aug 17, 2022 · 1 comment

Comments

@debo24
Copy link

debo24 commented Aug 17, 2022

In the file "v3-sdk/src/constants.ts" and line number 5, what is the importance of "POOL_INIT_CODE_HASH"?

@Florian-S-A-W
Copy link

Hi @debo24

Uniswap uses CREATE2 to determine the address of a pool. The advantage is that the address of a pool with two specific tokens and a specific fee tier is deterministic and computable wether the pool is deployed or not.
The SDK uses it in computePoolAddress.

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

No branches or pull requests

2 participants