Skip to content
Business logic Audit finding Intermediate

Governance emission adjustment ignored when weekly emission above tail threshold

The contract only applies the DAO-controlled tail emission rate when weekly emissions fall below a fixed threshold, so governance votes have no effect while emissions remain above that threshold. This means the DAO cannot adjust emissions as documented from epoch 67 onwards, undermining the intended governance control.

vesko210 Follow with codexNature and hakunamatata

Originally disclosed on Code4rena

Submitted by vesko210, also found by codexNature and hakunamatata

https://github.com/code-423n4/2025-05-blackhole/blob/92fff849d3b266e609e6d63478c4164d9f608e91/contracts/MinterUpgradeable.sol#L169-#L180

Summary

The protocol only applies the DAO-controlled tailEmissionRate when the weekly emission drops below TAIL_START. This prevents governance from influencing emissions during the intended phase (epoch ≥ 67), which contradicts the documented behavior and severely limits DAO control.

Finding Description

In the current implementation of update_period(), the weekly emission is multiplied by tailEmissionRate only when _weekly < TAIL_START. This logic is meant to apply the DAO’s voted emission adjustment in the governance-controlled phase (from epoch 67 onwards). However, this condition prevents DAO influence if emissions remain above TAIL_START, effectively locking the emission rate even after governance takes over.

This violates the protocol’s documented guarantee:

“On and after the 67th epoch, it relies on the Governance DAO. If the DAO votes in favor, it increases by 1% of the previous epoch’s emission; if the proposal is against, emission will decrease by 1%; else it will remain the same.”

Because the DAO’s control is blocked when _weekly >= TAIL_START, the contract fails to fulfill its core governance mechanism — undermining decentralization, community control, and emission responsiveness.

Impact

The impact is High. The protocol enters a governance phase after epoch 66, but the DAO’s vote is ignored unless emissions are below a fixed threshold. This means DAO proposals may appear to pass, but have no effect - creating a false sense of control. It limits emission modulation, disrupts monetary policy, and could erode community trust.

Recommended mitigation steps

Remove the if (_weekly < TAIL_START) conditional and apply tailEmissionRate unconditionally when epochCount >= 67, as per the documentation.

    if (block.timestamp >= _period + WEEK && _initializer == address(0)) {
        epochCount++;
        _period = (block.timestamp / WEEK) * WEEK;
        active_period = _period;

        uint256 _weekly = weekly;
        uint256 _emission;

        // Phase 1: Epochs 1–14 (inclusive) — 3% growth
        if (epochCount < 15) {
            _weekly = (_weekly * WEEKLY_GROWTH) / MAX_BPS;

        // Phase 2: Epochs 15–66 (inclusive) — 1% growth
        } else if (epochCount < 67) {
            _weekly = (_weekly * 10100) / MAX_BPS;

        // Phase 3: Epochs 67+ — DAO governance control via nudge()
        } else {
            // Apply governance-controlled tailEmissionRate from prior vote
            // Note: tailEmissionRate will have been set via `nudge()`
            _weekly = (_weekly * tailEmissionRate) / MAX_BPS;
        }

This allows the DAO to truly control emissions starting at epoch 67, as promised in the docs.

Blackhole mitigated

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


The original report as published on Code4rena, by vesko210. 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 conditional check `if (_weekly < TAIL_START)` incorrectly gates the application of the governance-set `tailEmissionRate`, so the DAO's adjustment is skipped whenever weekly emissions are at or above `TAIL_START`.

Impact

The DAO's votes are ignored when emissions are above the threshold, so governance proposals may pass but have no effect, limiting emission modulation and undermining community control.

What the attacker needed

Epoch 67 or later; DAO vote on emission adjustment

The fix

The conditional check should be removed so that `tailEmissionRate` is applied unconditionally when `epochCount >= 67`, as the documentation describes; the report notes the issue was mitigated.

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.

This is a smart contract for a cryptocurrency protocol. The code is supposed to let a group of token holders (a DAO) vote to slightly increase or decrease how many new tokens are created each week after a certain time. But a mistake in the code means their votes are ignored unless the weekly token creation has already fallen below a fixed number, so the DAO cannot actually control emissions as promised.

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 vesko210

View all

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