broccoli
There could be an integer underflow error when the reward of an incentive is claimed, forcing users to wait for a sufficient period or reduce their liquidity to claim the rewards.
The unclaimed reward that a user could claim is proportional to the secondsInside, which is, in fact, proportional to the positionβs liquidity. It is possible that the liquidity is too large and causes secondsInside to be larger than secondsUnclaimed. As a result, the rewards that the user wants to claim exceed the incentive.rewardsUnclaimed and causes an integer underflow error, which prevents him from getting the rewards.
Referenced code:
ConcentratedLiquidityPoolManager.sol#L94-L95
Check whether the rewards exceeds the incentive.rewardsUnclaimed. If so, then send only incentive.rewardsUnclaimed amount of rewards to the user.
The text was updated successfully, but these errors were encountered:
All reactions