Submitted by broccoli, also found by 0xsanson, cmichel, hickuphh3, and pauliax
In the subscribe function of ConcentratedLiquidityPoolManager, the incentive to subscribed is determined as follows:
However, positionId should be incentiveId, a counter that increases by one whenever a new incentive is added to the pool. The usage of positionId could cause the wrong incentive to be used, and in general, the incentive is not found, and the transaction reverts (the condition block.timestamp < incentive.endTime is not met). The getReward and claimReward functions have the bug of misusing positionId as the index of incentives.
Referenced code:
Change positionId to incentiveId in the referenced lines of code.
sarangparikh22 (Sushi) confirmed but disagreed with severity
