Unable to deposit to Convex in Arbitrum
The contract calls Convex Booster's deposit function with three arguments, but on Arbitrum the function only accepts two, causing a revert. This prevents any user from depositing LP tokens and entering a position on Arbitrum.
dan__vinci Follow with elolpuer, khaye26 and 1 other
Originally disclosed on Sherlock
Source: https://github.com/sherlock-audit/2025-06-notional-exponent-judging/issues/678
This issue has been acknowledged by the team but won't be fixed at this time.
Found by
dan__vinci, elolpuer, khaye26, 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
It was found that the Curve LP token will be deposited to Convex via the IConvexBooster(CONVEX_BOOSTER).deposit(CONVEX_POOL_ID, lpTokens, true) interface/function.
File: CurveConvex2Token.sol
291: function _stakeLpTokens(uint256 lpTokens) internal {
292: if (CONVEX_BOOSTER != address(0)) {
293: bool success = IConvexBooster(CONVEX_BOOSTER).deposit(CONVEX_POOL_ID, lpTokens, true);
294: require(success);
295: } else {
296: ICurveGauge(CURVE_GAUGE).deposit(lpTokens);
297: }
298: }
The following is that Booster contract address taken from the official documentation (https://docs.convexfinance.com/convexfinance/faq/contract-addresses):
Ethereum
- Booster(main deposit contract): 0xF403C135812408BFbE8713b5A23a04b3D48AAE31
//deposit lp tokens and stake
function deposit(uint256 _pid, uint256 _amount, bool _stake) public returns(bool){
require(!isShutdown,"shutdown");
PoolInfo storage pool = poolInfo[_pid];
require(pool.shutdown == false, "pool is closed");
Arbitrum
//deposit lp tokens and stake
function deposit(uint256 _pid, uint256 _amount) public returns(bool){
require(!isShutdown,"shutdown");
PoolInfo storage pool = poolInfo[_pid];
require(pool.shutdown == false, "pool is closed");
Notice that the interface of the deposit function in Arbitrum is different from Ethereum. Arbitum's deposit function only accept two parameters while Ethereum's deposit function requires three parameters.
Thus, when attempting to deposit Curve LP tokens to Convex in Arbitrum, the transaction revert due to incorrect function interfaces.
Impact
The protocol will not work because staking the LP token will cause the entire transaction to revert, preventing anyone from entering the position.
PoC
No response
Mitigation
function _stakeLpTokens(uint256 lpTokens) internal {
if (CONVEX_BOOSTER != address(0)) {
+ bool success;
+ if (Deployments.CHAIN_ID == Constants.CHAIN_ID_MAINNET) {
- bool success = IConvexBooster(CONVEX_BOOSTER).deposit(CONVEX_POOL_ID, lpTokens, true);
+ success = IConvexBooster(CONVEX_BOOSTER).deposit(CONVEX_POOL_ID, lpTokens, true);
} else if (Deployments.CHAIN_ID == Constants.CHAIN_ID_ARBITRUM) {
+ success = IConvexBoosterArbitrum(CONVEX_BOOSTER).deposit(CONVEX_POOL_ID, lpTokens);
+ }
require(success);
} else {
ICurveGauge(CURVE_GAUGE).deposit(lpTokens);
}
}
Discussion
jeffywu
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 code assumes the same function signature for Convex Booster on all chains, but Arbitrum's version takes two parameters instead of three.
Impact
On Arbitrum, staking LP tokens always reverts, so the protocol cannot function there.
What the attacker needed
Deployment on Arbitrum
The fix
The code should check the chain ID and call the correct deposit function with the appropriate number of arguments for each chain.
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 on Arbitrum tried to use a function from another contract (Convex Booster) but called it with the wrong number of inputs. Because the inputs didn't match, the transaction always failed, so users could not deposit their tokens.
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.