pancakeswap / pancake-v4-core

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

feat: add implementation of owner contract #172

Closed ChefMist closed 1 month ago

ChefMist commented 1 month ago

This PR aims to eventually resolves: https://github.com/pancakeswap/pancake-v4-core/issues/161

Due to https://github.com/pancakeswap/pancake-v4-core/pull/139

  1. it remove PausableRole from poolManager.sol
  2. so poolManager only have owner and onlyOwner for pause() and unpause()

Thus, this PR adds CLPoolManagerOwner and BinPoolManagerOwner which means:

  1. poolManager.owner will be CLPoolManagerOwner or BinPoolManagerOwner
  2. and CLPoolManagerOwner / BinPoolManagerOwner will come with the support to add pausable role for EOA to pause pool manager