Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Governance Updatable Governance Params #2903

Closed
apbendi opened this issue Oct 6, 2021 · 3 comments 路 Fixed by #2904
Closed

Feature: Governance Updatable Governance Params #2903

apbendi opened this issue Oct 6, 2021 · 3 comments 路 Fixed by #2904
Assignees
Labels
feature New contracts, functions, or helpers.

Comments

@apbendi
Copy link
Contributor

apbendi commented Oct 6, 2021

馃 Motivation

Feature parity with Compound Governor Bravo.

馃摑 Details

In Compound's Governor Bravo, it's possible for Governance itself to update the following governance parameters:

In the OZ Governance system, these parameters are never implemented concretely, but instead exist as virtual parameters. (Unless, of course, I'm missing something!).

The expectation is, presumably, that each project will implement these parameters on their own concrete instance and set them to whichever values they prefer. It would also be possible for said implementer to also create setters for these parameters with appropriate logic around who can set them.

In order to offer out-of-the box feature parity with Bravo, we propose the following course of action:

Implement a concrete Governor instance that:

  • Takes values for the three governance parameters as arguments in its constructor
  • Has setters for each param bounded by onlyGovernance
  • Does basic validation of the parameters in both the constructor and setter methods

We are happy to take a first pass at this feature and open a PR if it is something the OZ team would be willing to merge if implemented. Thanks for your consideration!

@Amxx Amxx self-assigned this Oct 6, 2021
@Amxx Amxx added the feature New contracts, functions, or helpers. label Oct 6, 2021
@Amxx
Copy link
Collaborator

Amxx commented Oct 6, 2021

Does basic validation of the parameters in both the constructor and setter methods

What checks do you imagine? The only I can think of is votingPeriod > 0

@apbendi
Copy link
Contributor Author

apbendi commented Oct 6, 2021

@Amxx Wow you're fast!

Bravo has immutable Min/Max thresholds: https://github.com/Arr00-Blurr/compound-protocol/blob/master/contracts/Governance/GovernorBravoDelegate.sol#L297

I think some kind of Max is a must have, because setting any of these too high could effectively brick your governance.

@Amxx
Copy link
Collaborator

Amxx commented Oct 6, 2021

#2866

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New contracts, functions, or helpers.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants