sanity rule preparations

This commit is contained in:
Aleksander Kryukov
2021-11-03 17:05:06 +02:00
parent 6776cc6ee4
commit cac49bfc2e
9 changed files with 45 additions and 16 deletions

View File

@ -63,7 +63,7 @@ abstract contract GovernorCountingSimple is Governor {
/**
* @dev See {Governor-_quorumReached}.
*/
function _quorumReached(uint256 proposalId) internal view virtual override returns (bool) {
function _quorumReached(uint256 proposalId) public view virtual override returns (bool) {
ProposalVote storage proposalvote = _proposalVotes[proposalId];
return quorum(proposalSnapshot(proposalId)) <= proposalvote.forVotes + proposalvote.abstainVotes;
@ -72,7 +72,7 @@ abstract contract GovernorCountingSimple is Governor {
/**
* @dev See {Governor-_voteSucceeded}. In this module, the forVotes must be strictly over the againstVotes.
*/
function _voteSucceeded(uint256 proposalId) internal view virtual override returns (bool) {
function _voteSucceeded(uint256 proposalId) public view virtual override returns (bool) {
ProposalVote storage proposalvote = _proposalVotes[proposalId];
return proposalvote.forVotes > proposalvote.againstVotes;