v3-sdk
v3-sdk copied to clipboard
What is the significance of "POOL_INIT_CODE_HASH" ?
In the file "v3-sdk/src/constants.ts" and line number 5, what is the importance of "POOL_INIT_CODE_HASH"?
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.