-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
Document voting counting until casted in GovernorCountingOverridable #5309
Conversation
|
contracts/governance/extensions/GovernorCountingOverridable.sol
Outdated
Show resolved
Hide resolved
contracts/governance/extensions/GovernorCountingOverridable.sol
Outdated
Show resolved
Hide resolved
contracts/governance/extensions/GovernorCountingOverridable.sol
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a missunderstanding here.
Casting an override does trigger _countOverride
, which will update the votes count for the proposal ID. This will immidiatly affect the result of the vote, and count toward quorum.
It also triggers _tallyUpdated
, which may may trigger quorum related operations, such as the one in GovernorPreventLateQuorum
.
This means that vote override are fully and immedialty accounted, regardless of the actions of the delegate (which may never vote).
Right, I removed the NatSpec at the top of the contract and kept the two notes. |
contracts/governance/extensions/GovernorCountingOverridable.sol
Outdated
Show resolved
Hide resolved
Co-authored-by: Hadrien Croubois <[email protected]>
contracts/governance/extensions/GovernorCountingOverridable.sol
Outdated
Show resolved
Hide resolved
Co-authored-by: Ernesto García <[email protected]>
contracts/governance/extensions/GovernorCountingOverridable.sol
Outdated
Show resolved
Hide resolved
contracts/governance/extensions/GovernorCountingOverridable.sol
Outdated
Show resolved
Hide resolved
Co-authored-by: Hadrien Croubois <[email protected]>
Co-authored-by: Hadrien Croubois <[email protected]>
Fixes L-04
Although we're not changing the code, it's true that more explicit documentation is required
PR Checklist
npx changeset add
)