pancakeswap / pancake-v4-core

GNU General Public License v2.0
48 stars 30 forks source link

Prepare `owner` contract #161

Open ChefMist opened 1 week ago

ChefMist commented 1 week ago

Per this PR: https://github.com/pancakeswap/pancake-v4-core/pull/139

In order to reduce contract size, we did the above PR and in doing so, PausableRole has been removed.

Now we need a owner contract which

  1. A way for others to call the owner contract to pause pool manager. eg. others --> owner contract --> poolManager.pause()
  2. A way in the owner contract to whitelist who can call pause()
ChefSnoopy commented 1 week ago

ok, got it

ChefMist commented 5 days ago

take into account of https://github.com/pancakeswap/pancake-v4-core/pull/169

ChefMist commented 5 days ago

design choices

Option 1: Both pool manager point to the same contract

Option 2: Each pool manager will have its own contract

ChefSnoopy commented 4 days ago

design choices

Option 1: Both pool manager point to the same contract

Option 2: Each pool manager will have its own contract

I vote option 2

chefburger commented 4 days ago

design choices Option 1: Both pool manager point to the same contract Option 2: Each pool manager will have its own contract

I vote option 2

Agree, as option2 provides more flexibility. They can point to same address tho