Skip to content
Business logic Audit finding Intermediate

Governance deadlock potential in BlackGovernor.sol due to quorum mismatch

The governor contract calculates the proposal threshold from total veBLACK voting power but calculates quorum from a cumulative sum of BLACK tokens ever burned for smNFTs, which only grows. As that burned total grows, the quorum target can become unachievable, so proposals to call the only reachable function, nudge(), could repeatedly fail and leave it unusable.

spectr Follow

Originally disclosed on Code4rena

Submitted by spectr

https://github.com/code-423n4/2025-05-blackhole/blob/92fff849d3b266e609e6d63478c4164d9f608e91/contracts/BlackGovernor.sol#L52

https://github.com/code-423n4/2025-05-blackhole/blob/92fff849d3b266e609e6d63478c4164d9f608e91/contracts/BlackGovernor.sol#L91

Finding description

  • Severity: Medium

  • Affected contracts:

    • contracts/BlackGovernor.sol
    • contracts/VotingEscrow.sol (as the source of getPastTotalSupply and smNFTBalance)
    • contracts/MinterUpgradeable.sol (as the target of the nudge() function)

The mechanism for proposals in BlackGovernor.sol has a fundamental mismatch between how the proposalThreshold is determined and how the quorum is calculated.

  1. Proposal Threshold: Determined by proposalThreshold(), which requires a percentage (default 0.2%, configurable by team up to 10%) of the total current veBLACK voting power. This includes voting power from both regular veNFT locks and Supermassive NFTs (smNFTs).

    // contracts/BlackGovernor.sol
    function proposalThreshold() public view override returns (uint256) {
       return (token.getPastTotalSupply(block.timestamp) * proposalNumerator) / PROPOSAL_DENOMINATOR;
    }
    // token.getPastTotalSupply() resolves to VotingEscrow.totalSupplyAtT(timestamp)
    
  2. Quorum: Determined by quorum(), which requires 4% of token.getsmNFTPastTotalSupply(). This getsmNFTPastTotalSupply() resolves to VotingEscrow.smNFTBalance.

    VotingEscrow.smNFTBalance represents the cumulative sum of principal BLACK tokens ever burned to create or upgrade to smNFTs. This smNFTBalance value only ever increases. The 4% of this principal amount is then used as the target for the total voting power that must be cast in favor of a proposal.

    // contracts/BlackGovernor.sol
    function quorum(uint256 blockTimestamp) public view override returns (uint256) {
        return (token.getsmNFTPastTotalSupply() * quorumNumerator()) / quorumDenominator(); // quorumNumerator is 4
    }
    // token.getsmNFTPastTotalSupply() resolves to VotingEscrow.smNFTBalance
    

    This creates a situation where the ability to propose is based on overall veBLACK voting power distribution, but the ability for a proposal to pass (quorum) is heavily tied to a growing, historical sum of burned BLACK for smNFTs, which might not correlate with active smNFT voting participation or the total active voting power.

Risk and Impact

The primary risk is a Denial of Service (DoS) for the MinterUpgradeable.nudge() function, which is the only function BlackGovernor.sol can call.

  • Governance deadlock scenario (Medium risk): As the protocol matures, VotingEscrow.smNFTBalance (total BLACK principal burned for smNFTs) can grow significantly. If this balance becomes very large, the 4% quorum target (in terms of required voting power) can become unachievably high for the following reasons:

    • Active smNFT holders might be a small fraction of the total smNFTBalance contributors (e.g., due to inactive early minters).
    • The collective voting power of active smNFT holders who support a given proposal might be insufficient to meet this high quorum.
    • A user or group could meet the proposalThreshold() using voting power from regular veBLACK locks, but their proposal would consistently fail if the smNFT-derived quorum is not met by other voters. This leads to the nudge() function becoming unusable, preventing any future adjustments to the tail emission rate via this governor.
  • Governance spam: A secondary consequence is the potential for governance “spam,” where proposals are repeatedly created meeting the threshold but are destined to fail due to the quorum structure, causing on-chain noise.

  • Contrast - low quorum scenario (Informational): Conversely, if smNFTBalance is very low (e.g., early in the protocol, or if smNFTs are unpopular), the quorum can be trivially met, potentially allowing a small group (that meets proposal threshold) to easily control the nudge() function. This aspect was previously noted but provides context to the design’s sensitivity to smNFTBalance.

  • Illustrative deadlock scenario:

    1. The smNFTBalance in VotingEscrow.sol has grown to a large number (e.g., 10,000,000 BLACK principal burned).
    2. The quorum target, in terms of voting power, becomes 4% of this, i.e., equivalent to the voting power derived from 400,000 BLACK (if it were all smNFTs with average lock/bonus).
    3. A group of users (“Proposers”) accumulates 0.2% of the total veBLACK voting power (e.g., from a mix of regular and some smNFT locks) and creates a proposal to nudge() emissions.
    4. Many of the smNFTs contributing to the smNFTBalance were created by users who are now inactive or do not vote on this proposal.
    5. The active smNFT holders, plus the Proposers’ own smNFT voting power, sum up to less than the 400,000 BLACK equivalent voting power required for quorum.
    6. The proposal fails. This cycle can repeat, rendering the nudge() function effectively disabled.

Recommended mitigation steps

The current quorum mechanism presents a significant risk to the intended functionality of BlackGovernor.sol. Consider the following:

  • Align quorum base: Modify the quorum calculation to be based on a metric more aligned with active participation or total voting power, similar to the proposalThreshold. For example, base the quorum on a percentage of token.getPastTotalSupply(block.timestamp) (total veBLACK voting power).

  • Adaptive quorum: Implement an adaptive quorum mechanism. This could involve:

    • A quorum that adjusts based on recent voting participation in BlackGovernor proposals.
    • A system where the contribution of an smNFT to the smNFTBalance (for quorum calculation purposes, not its actual voting power) decays over time if the smNFT is inactive in governance.
  • Dual quorum condition: Consider requiring the lesser of two quorum conditions to be met: e.g., (4% of smNFTBalance-derived voting power) OR (X% of total veBLACK voting power). This provides a fallback if smNFTBalance becomes disproportionately large or inactive.

  • Documentation and monitoring: If the current design is retained, thoroughly document the rationale and potential long-term implications. Continuously monitor smNFTBalance growth versus active smNFT voting participation and total veBLACK supply to assess if the nudge() function’s viability is threatened.

Blackhole marked as informative


The original report as published on Code4rena, by spectr. 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

Likely the quorum is derived from a monotonically increasing cumulative burn total (smNFTBalance) rather than from active or total voting power, so it does not track the voting power actually available to vote.

Impact

Proposals could repeatedly fail to reach quorum, which may render the nudge() function effectively disabled and also cause governance spam; conversely, a low smNFTBalance could let a small group easily control nudge().

What the attacker needed

SmNFTBalance grows large; active smNFT voters are a small fraction; proposers hold 0.2% of veBLACK power

The fix

The quorum should be based on a metric aligned with active participation or total voting power, such as a percentage of total veBLACK supply, or use an adaptive or dual quorum condition.

How it was found

  1. The smNFTBalance in VotingEscrow.sol has grown to a large number
  2. The quorum target, in terms of voting power, becomes 4% of this
  3. A group of users accumulates 0.2% of the total veBLACK voting power and creates a proposal to nudge() emissions
  4. Many of the smNFTs contributing to the smNFTBalance were created by users who are now inactive or do not vote on this proposal
  5. The active smNFT holders, plus the Proposers' own smNFT voting power, sum up to less than the required voting power for quorum
  6. The proposal fails

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.

A governance contract lets token holders vote on changes. To submit a proposal you need a small share of voting power, and to pass it a larger share must vote yes. Here the two shares are measured from different things: the first from all voting power, the second from a number that only ever goes up as tokens are burned, so the bar to pass can rise beyond what active voters can reach.

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 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.