Convex cannot be configured for the Yield Strategy vault in Arbitrum even though Convex is available in Arbitrum
The CurveConvex2Token constructor only configures the Convex booster when the chain ID equals mainnet, so on Arbitrum the booster and pool ID are never set even though Convex exists there. This leaves the Convex staking path unusable for the Yield Strategy vault on Arbitrum.
Source: https://github.com/sherlock-audit/2025-06-notional-exponent-judging/issues/775
This issue has been acknowledged by the team but won't be fixed at this time.
Found by
0xRstStn, 0xShoonya, Atharv, Ledger_Patrol, anchabadze, h2134, holtzzx, jasonxiale, kangaroo, lodelux, theweb3mechanic, xiaoming90
Summary
Root Cause
Internal Pre-conditions
External Pre-conditions
Attack Path
Per the contest's README, Base and Arbitrum are in-scope for this contest. Sherlock's Judge has further confirmed this in the Discord channel.
Q: On what chains are the smart contracts going to be deployed? Ethereum, in the future we will consider Base or Arbitrum
However, it was observed that Convex cannot be configured for the Yield Strategy vault in Arbitum even though Convex is available in Arbitrum.
In Line 137, the block.chainid == CHAIN_ID_MAINNET condition will always be false in Arbitrum and thus the convexBooster can never be configured.
File: CurveConvex2Token.sol
115: constructor(
116: address _token1,
117: address _token2,
118: address _asset,
119: uint8 _primaryIndex,
120: DeploymentParams memory params
121: ) {
122: TOKEN_1 = _token1;
123: TOKEN_2 = _token2;
124: ASSET = _asset;
125: _PRIMARY_INDEX = _primaryIndex;
126:
127: CURVE_POOL = params.pool;
128: CURVE_GAUGE = params.gauge;
129: CURVE_POOL_TOKEN = ERC20(params.poolToken);
130: CURVE_INTERFACE = params.curveInterface;
131:
132: // If the convex reward pool is set then get the booster and pool id, if not then
133: // we will stake on the curve gauge directly.
134: CONVEX_REWARD_POOL = params.convexRewardPool;
135: address convexBooster;
136: uint256 poolId;
137: if (block.chainid == CHAIN_ID_MAINNET && CONVEX_REWARD_POOL != address(0)) {
138: convexBooster = IConvexRewardPool(CONVEX_REWARD_POOL).operator();
139: poolId = IConvexRewardPool(CONVEX_REWARD_POOL).pid();
140: }
141:
142: CONVEX_POOL_ID = poolId;
143: CONVEX_BOOSTER = convexBooster;
144: }
Impact
Medium. Core functionality is broken.
PoC
No response
Mitigation
No response
Discussion
T-Woodward
Won't fix in this version, will fix if deployed to Arbitrum.
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
The constructor gates Convex booster configuration on a hardcoded mainnet chain ID check, so any other chain leaves the booster and pool ID unset.
Impact
Core functionality is broken on Arbitrum because Convex staking cannot be configured, though the team says it will fix this if deployed to Arbitrum.
What the attacker needed
Deployment on Arbitrum; Convex reward pool configured
The fix
The team acknowledged the issue but stated it won't be fixed in this version, only if deployed to Arbitrum.
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 checks which blockchain it is running on before setting up a staking integration. The check only allows the main Ethereum network, so on Arbitrum the setup is skipped and that staking feature cannot work. The team acknowledged this but chose not to fix it in this version.
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.