v4-periphery icon indicating copy to clipboard operation
v4-periphery copied to clipboard

FullRange Hook Bug Fixes

Open Jun1on opened this issue 8 months ago • 0 comments

Related Issue

  1. someone can externally call beforeInitialize and overwrite the poolToken
  2. function _rebalance is public
  3. fees can easily be yoinked

Description of changes

  1. add onlyByManager
  2. rename _rebalance -> rebalance
  3. rebalance before add liquidity and mint the user the proportional of liquidity*totalSupply/getLiquidity(poolId) instead of liquidity

Jun1on avatar Jun 24 '24 16:06 Jun1on