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.
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
Assets are at risk after a wrong governance action. Severity 2.
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.