Skip to content
Business logic Audit finding Intermediate

Quorum does not include the againstVotes leading to emissions rate staying the same even if it should decrease

The quorum check in the governor contract only counts forVotes and abstainVotes, ignoring againstVotes. As a result, a proposal with overwhelming againstVotes can be marked Expired instead of Defeated, so the emissions rate does not decrease as intended.

hakunamatata Follow

Originally disclosed on Code4rena

Submitted by hakunamatata

https://github.com/code-423n4/2025-05-blackhole/blob/main/contracts/governance/Governor.sol#L184-L191

https://github.com/code-423n4/2025-05-blackhole/blob/main/contracts/governance/Governor.sol#L680-L684

https://github.com/code-423n4/2025-05-blackhole/blob/main/contracts/MinterUpgradeable.sol#L138-L155

Finding description and impact

The BlackGovernor should be able to, based on user votes determine the status of the proposal and then execute it. We can see from the code that if proposal succeeds, then the emissions inside the MinterUpgradeable should decrease by 1%, if proposal is defeated it should decrease by 1%, otherwise, if quorum is not reached or the forVotes/againstVotes are not big enough compared to abstain votes (which means proposal state is expired) the emissions should stay the same.

However, when determining the status of the proposal the following check is made:

// quorum reached is basically a percentage check which is of the number specified in constructor of the L2GovernorVotesQuorumFraction(4) // 4%

if (_quorumReached(proposalId) && _voteSucceeded(proposalId)) {

return ProposalState.Succeeded;

} else  if (_quorumReached(proposalId) && _voteDefeated(proposalId)) {

return ProposalState.Defeated;

} else {

return ProposalState.Expired;

}

From the code we can see that if quorum is not reached it, the proposal is considered Expired after the voting period has ended. However, due to the fact that _quorumReachedFunction is using ONLY the forVotes and abstainVotes, which is incorrect based on the functionality that protocol wants to introduce, we can imagine the following scenario:

  • The emissions are high, and almost all of the users agree that they should decrease the emissions rate.

  • 99% of votes are againstVotes as almost everybody agrees that emissions should decrease.

  • The voting period for the proposal ends

    • User tries to execute the proposal expecting that the emissions rate will decrease as 99% of the votes were against and this amount of votes should meet the quorum.
    • The function executes but it calculates the state as Expired because according to it quorum has not been reached as against votes DO NOT count into the quorum.
    • The emissions rate stay the same even though “all” of the voting users agreed that it should decrease.

Quorum reached snippet:

function  _quorumReached(

uint256 proposalId

) internal  view virtual override returns (bool) {

ProposalVote  storage proposalvote = _proposalVotes[proposalId];

return

quorum(proposalSnapshot(proposalId)) <=
//@audit NO AGAINST VOTES
proposalvote.forVotes + proposalvote.abstainVotes;

}

We can see that evaluation whether quorum was reached or not is incorrect based on the functionality that protocol wants to achieve leading to, for example, decrease of the emissions rate by the BlackGovernor being not possible, when almost everybody agrees to do so. Based on the provided facts, I think this should be Medium severity finding as it disrupts the emissions of the BlackToken.

Recommended mitigation steps

When evaluating whether quorum was reached, take against votes into the account.

Blackhole mitigated

Status: Mitigation confirmed. Full details in reports from rayss and lonelybones.

The sponsor team requested that the following note be included:

This issue originates from the upstream codebase, inherited from ThenaV2 fork. Given that ThenaV2 has successfully operated at scale for several months without incident, we assess the severity of this issue as low. The implementation has been effectively battle-tested in a production environment, which significantly reduces the practical risk associated with this finding. Reference: https://github.com/ThenafiBNB/THENA-Contracts/blob/main/contracts/governance/Governor.sol#L668


The original report as published on Code4rena, by hakunamatata. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The quorum calculation sums only forVotes and abstainVotes, omitting againstVotes, so a proposal with a large number of against votes fails to meet quorum.

Impact

The emissions rate may fail to decrease even when the majority of voters are against the proposal, disrupting the intended token emission schedule.

What the attacker needed

A proposal to change emissions; majority againstVotes; quorum not reached without againstVotes

The fix

The quorum check should include againstVotes in the sum, and the text states the issue was mitigated.

How it was found

  1. A proposal is created to decrease emissions.
  2. Almost all voters vote against the proposal (e.g., 99% againstVotes).
  3. The voting period ends.
  4. A user executes the proposal expecting emissions to decrease.
  5. The governor calculates the state as Expired because quorum was not reached (against votes not counted).
  6. The emissions rate stays the same.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

In a voting system, a proposal only counts if enough people vote (this is called quorum). Here, the code only adds up votes in favour and abstentions, but not votes against. So if almost everyone votes against, the system thinks not enough people voted and treats the proposal as expired, meaning the planned change to token emissions does not happen.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by hakunamatata

View all

7 more disclosed reports, best first.

More from Blackhole

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.