OpenZeppelin / openzeppelin-contracts

OpenZeppelin Contracts is a library for secure smart contract development.
https://openzeppelin.com/contracts
MIT License
24.98k stars 11.8k forks source link

Governor cancel guardian feature #5301

Open arr00 opened 4 days ago

arr00 commented 4 days ago

🧐 Motivation Cancellation needs to be expanded from the current minimal publicly exposed function on governor.

📝 Details Enable the _cancel function to be called by this cancel guardian (set by governor) at any point. If the guardian is not set, allow the proposer to cancel at any time (permitted by _cancel). The proposer maintains the ability to cancel during the pending period during all cases.