Summary
finalize() now includes abstentions in the quorum calculation:
let total_votes = proposal.votes_for + proposal.votes_against + proposal.abstentions;
if total_votes >= config.quorum && proposal.votes_for > proposal.votes_against {
There is no test explicitly verifying that a proposal can reach quorum purely via abstentions and then fail because votes_for does not exceed votes_against.
Tasks
Labels: testing, forge-governor
Summary
finalize()now includes abstentions in the quorum calculation:There is no test explicitly verifying that a proposal can reach quorum purely via abstentions and then fail because
votes_fordoes not exceedvotes_against.Tasks
quorum = 100100abstain votes (meets quorum)finalize()and assert state isFailed(quorum met but no majority)get_vote_tally()showsabstain_votes = 100,yes_votes = 0,no_votes = 0Labels:
testing,forge-governor