Uniswap / v3-periphery

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

Return block starting liquidity from `getBlockStartingTick` #211

Closed hensha256 closed 3 years ago

hensha256 commented 3 years ago

To calculate a liquidity-weighted block starting price across multiple fee tiers, block-starting liquidity is also needed. Given a helper function getBlockStartingTick already does most of the leg work, it makes sense to give this function a second return parameter and additionally return the block-starting liquidity