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

refactor: simple quorum comment and var name #246

Merged
merged 1 commit into from
Dec 7, 2023
Merged

Conversation

Orland0x
Copy link
Contributor

@Orland0x Orland0x commented Nov 1, 2023

The natspec comment mentioned that the quorum was calculated from all vote types when actually it is calculated from just for and abstain votes.

Additionally, in the _quorumReached internal function, totalVotes was used as the variable name for the sum of for and abstain votes. This is misleading.

This PR therefore updates the comment and renamed the totalVotes var to forAndAbstainVotesTotal.

The natspec comment mentioned that the quorum was calculated from all vote types when actually it is calculated from just for and abstain votes. 

Additionally, in the `_quorumReached` internal function, `totalVotes` was used as the variable name for the sum of for and abstain votes. This is misleading. 

This PR therefore updates the comment and renamed the `totalVotes` var to `forAndAbstainVotesTotal`.
@Orland0x Orland0x requested a review from pscott December 7, 2023 11:17
Copy link
Collaborator

@pscott pscott left a comment

Choose a reason for hiding this comment

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

utACK

@Orland0x Orland0x merged commit 7563118 into main Dec 7, 2023
3 checks passed
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.

2 participants