Skip to content

Add GovernorSuperQuorum extension #1427

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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

markv44
Copy link

@markv44 markv44 commented Apr 30, 2025

Fixes #1385

This PR introduces the GovernorSuperQuorum extension to the governance module, allowing proposals that achieve a significant majority of FOR votes (the "super quorum") and meet success conditions to pass before the official voting period ends.
This functionality mirrors the Solidity GovernorSuperQuorum extension and addresses issue #1385.
The implementation includes the GovernorSuperQuorumComponent, integration into the extensions module, and the necessary test file structure (test_governor_superquorum.cairo). It features a runtime check to ensure the configured super quorum is not less than the regular quorum, preventing potential vulnerabilities.

The primary goal is to allow faster resolution for proposals that have clear overwhelming support, reducing the waiting time imposed by the standard voting period. Integration requires the host contract to implement the GovernorSuperQuorumInternal trait to provide vote counts and the specific super quorum threshold.

PR Checklist

  • Tests
  • Documentation
  • Added entry to CHANGELOG.md
  • Tried the feature on a public network

@markv44
Copy link
Author

markv44 commented Apr 30, 2025

Hey @ericnordelo , here is the pr for #1385 , please check and let me know if anything needs to be changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add GovernorSuperQuorum extension
1 participant