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.
Submitted by spectr
Finding description
-
Severity: Medium
-
Affected contracts:
contracts/BlackGovernor.solcontracts/VotingEscrow.sol(as the source ofgetPastTotalSupplyandsmNFTBalance)contracts/MinterUpgradeable.sol(as the target of thenudge()function)
The mechanism for proposals in BlackGovernor.sol has a fundamental mismatch between how the proposalThreshold is determined and how the quorum is calculated.
-
Proposal Threshold: Determined by
proposalThreshold(), which requires a percentage (default 0.2%, configurable byteamup to 10%) of the total currentveBLACKvoting power. This includes voting power from both regularveNFTlocks 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) -
Quorum: Determined by
quorum(), which requires 4% oftoken.getsmNFTPastTotalSupply(). ThisgetsmNFTPastTotalSupply()resolves toVotingEscrow.smNFTBalance.VotingEscrow.smNFTBalancerepresents the cumulative sum of principalBLACKtokens ever burned to create or upgrade to smNFTs. ThissmNFTBalancevalue 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.smNFTBalanceThis creates a situation where the ability to propose is based on overall
veBLACKvoting power distribution, but the ability for a proposal to pass (quorum) is heavily tied to a growing, historical sum of burnedBLACKfor 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(totalBLACKprincipal 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
smNFTBalancecontributors (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 regularveBLACKlocks, but their proposal would consistently fail if the smNFT-derived quorum is not met by other voters. This leads to thenudge()function becoming unusable, preventing any future adjustments to the tail emission rate via this governor.
- Active smNFT holders might be a small fraction of the total
-
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
smNFTBalanceis 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 thenudge()function. This aspect was previously noted but provides context to the design’s sensitivity tosmNFTBalance. -
Illustrative deadlock scenario:
- The
smNFTBalanceinVotingEscrow.solhas grown to a large number (e.g., 10,000,000BLACKprincipal burned). - 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). - A group of users (“Proposers”) accumulates 0.2% of the total
veBLACKvoting power (e.g., from a mix of regular and some smNFT locks) and creates a proposal tonudge()emissions. - Many of the smNFTs contributing to the
smNFTBalancewere created by users who are now inactive or do not vote on this proposal. - The active smNFT holders, plus the Proposers’ own smNFT voting power, sum up to less than the 400,000
BLACKequivalent voting power required for quorum. - The proposal fails. This cycle can repeat, rendering the
nudge()function effectively disabled.
- The
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 oftoken.getPastTotalSupply(block.timestamp)(totalveBLACKvoting power). -
Adaptive quorum: Implement an adaptive quorum mechanism. This could involve:
- A quorum that adjusts based on recent voting participation in
BlackGovernorproposals. - 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.
- A quorum that adjusts based on recent voting participation in
-
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 totalveBLACKvoting power). This provides a fallback ifsmNFTBalancebecomes disproportionately large or inactive. -
Documentation and monitoring: If the current design is retained, thoroughly document the rationale and potential long-term implications. Continuously monitor
smNFTBalancegrowth versus active smNFT voting participation and totalveBLACKsupply to assess if thenudge()function’s viability is threatened.
Blackhole marked as informative
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
- The smNFTBalance in VotingEscrow.sol has grown to a large number
- The quorum target, in terms of voting power, becomes 4% of this
- A group of users accumulates 0.2% of the total veBLACK voting power and creates a proposal to nudge() emissions
- Many of the smNFTs contributing to the smNFTBalance were created by users who are now inactive or do not vote on this proposal
- The active smNFT holders, plus the Proposers' own smNFT voting power, sum up to less than the required voting power for quorum
- 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.