Skip to content
Business logic Audit finding Intermediate

Incentive should check that it hasn’t started yet

The addIncentive function does not check whether an incentive has already started, allowing an incentive with a non-zero secondsClaimed to be added. This could lead to incorrect reward calculations.

cmichel Follow

Originally disclosed on Code4rena

Submitted by cmichel, also found by pauliax

The ConcentratedLiquidityPoolManager.addIncentive function can add an incentive that already has a non-zero incentive.secondsClaimed.

Impact

Rewards will be wrong.

Recommended Mitigation Steps

Add a check: require(incentive.secondsClaimed == 0, "!secondsClaimed").

sarangparikh22 (Sushi) confirmed

alcueca (judge) commented:

Assets are at risk after a wrong governance action. Severity 2.

The original report as published on Code4rena, by cmichel. 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 addIncentive function lacks a check to ensure the incentive's secondsClaimed is zero before adding it.

Impact

Rewards could be calculated incorrectly, putting assets at risk after a wrong governance action.

What the attacker needed

Governance action to add incentive

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 smart contract function that adds rewards does not verify that the reward period has not already begun. If someone adds a reward that is already active, the system may calculate rewards incorrectly.

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 cmichel

View all

196 more disclosed reports, best first.

More from Sushi Trident contest phase 2

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.