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

Already on GitHub? Sign in to your account

Changed _quorumReached function to not include abstentions (M-02) #86

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

Conversation

jferas
Copy link
Collaborator

@jferas jferas commented Dec 13, 2024

Resolves #62


/// @inheritdoc GovernorCountingFractionalUpgradeable
// solhint-disable-next-line func-name-mixedcase
function COUNTING_MODE() public pure virtual override(IGovernor, GovernorCountingFractionalUpgradeable) returns (string memory) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
function COUNTING_MODE() public pure virtual override(IGovernor, GovernorCountingFractionalUpgradeable) returns (string memory) {
function COUNTING_MODE() public pure override(IGovernor, GovernorCountingFractionalUpgradeable) returns (string memory) {

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done: 9bcc3a0

}

/// @inheritdoc GovernorUpgradeable
/// @dev We override this function to resolve ambiguity between inherited contracts.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should change the comment - we override in order to change the quorum strategy. we should also check against the GovernorUpgradeable docs to make sure the natspec is correct (aka that it doesn't reference for + abstain) and if it does, we should not inherit the natspec

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done: 9bcc3a0

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.

M-02 Abstentions Count Toward Quorum Requirements
3 participants