Uniswap / v3-periphery

🦄 🦄 🦄 Peripheral smart contracts for interacting with Uniswap v3
https://uniswap.org
GNU General Public License v2.0
1.15k stars 1.06k forks source link

fix: add computeAddress for pools deployed with solidity 0.7.6 #385

Closed leozaragoza closed 1 month ago

leozaragoza commented 2 months ago

Since many users use the 0.8 branch as a library for their contracts, I added a convenient method to compute the pool addresses for most uni-v3 pools deployed with 0.7.6. A possible option is to have another computeAddress method that receives the POOL_INIT_CODE_HASH as a parameter to make it generic. eg. usage of PoolAddress for external contracts