pancakeswap / pancake-v4-core

GNU General Public License v2.0
52 stars 36 forks source link

feat: only allow fee controller to collect protocolFee #174

Closed ChefMist closed 1 month ago

ChefMist commented 1 month ago

Per the discussion at https://github.com/pancakeswap/pancake-v4-core/pull/172#discussion_r1756291693

This PR basically remove owner() access to poolManager.collectProtocolFee(..). only the designated protocolFeeController can call poolManager.collectProtocolFee

Closes https://github.com/pancakeswap/pancake-v4-core/issues/173