`migrateRewardPool` Fails Due to Incompatible Storage Design in `CurveConvexLib`
The migrateRewardPool function in AbstractRewardManager is intended to change the reward pool, but CurveConvex2Token uses an immutable reward pool address in CurveConvexLib, so the migration has no effect. As a result, rewards cannot be redirected to a new Convex pool without upgrading the contract.
Ledger_Patrol Follow with bretzel, mstpr-brainbot and 2 others
Originally disclosed on Sherlock
Source: https://github.com/sherlock-audit/2025-06-notional-exponent-judging/issues/485
This issue has been acknowledged by the team but won't be fixed at this time.
Found by
Ledger_Patrol, bretzel, mstpr-brainbot, tjonair, xiaoming90
Summary
The migrateRewardPool function in the AbstractRewardManager contract is designed to migrate rewards from an old Convex reward pool to a new one by updating internal storage, withdrawing from old reward pool and depositing into the new reward pool. This mechanism relies on writing to local storage slots (e.g., _getRewardPoolSlot()), via delegatecall from a yield strategy contract.
In practice, this fails because when CurveConvex2Token is deployed, it deploys CurveConvexLib, where reward pool address is immutable. The CurveConvex2Token stores the address of CurveConvexLib into another immutable variable.
Since the reward pool address is immutable in CurveConvexLib, whenever Lp token is minted, the CurveConvex2Token deposit them to the same reward pool even if reward pool is changed in reward manager. There is no migration possible in CurveConvex2Token. This breaks the core migration functionality, despite the function being exposed and annotated for use when the reward pool changes.
This violates the IRewardManager interface contract NATSPEC, which states that migrateRewardPool should be used both initially and when the reward pool changes — of which reward pool change can be accomplished properly in this case.
Root Cause
None
Internal Pre-conditions
None
External Pre-conditions
Convex protocol can decide to deprecate an old pool and create a new one
Attack Path
None
Impact
Reward pool cannot be changed when convex migrates to a new reward pool
PoC
No response
Mitigation
Create a migration logic for CurveConvex2Token where reward pool can be migrated from one to another
Discussion
jeffywu
Migrations to a new reward pool require an upgrade to the contract. See this corresponding test: https://github.com/sherlock-audit/2025-06-notional-exponent/blob/main/notional-v4/tests/TestRewardManager.sol#L63
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
Impact
The reward pool cannot be changed when Convex migrates to a new reward pool, so rewards would continue to be sent to the old pool unless the contract is upgraded.
What the attacker needed
Convex deprecates the old reward pool
The fix
The team acknowledged the issue but stated that migrations to a new reward pool require a contract upgrade, so no code fix was made.
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 reward pool is where extra tokens are sent as rewards. The code tries to switch to a new pool, but the address of the pool is fixed when the contract is created and cannot be changed later. So the switch does nothing, and rewards keep going to the old pool.
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.