Skip to content
Business logic Audit finding Intermediate

Single sided strategy cant do trades for ETH pools

The single-sided Curve LP strategy fails when a Curve pool has ETH as an underlying token because the trading module returns native ETH, but the strategy attempts to withdraw WETH, causing a revert. This prevents users from depositing into such pools.

elolpuer Follow with mstpr-brainbot

Originally disclosed on Sherlock

Source: https://github.com/sherlock-audit/2025-06-notional-exponent-judging/issues/279

Found by

elolpuer, mstpr-brainbot

Summary

When users deposit the "asset" into the single-sided Curve LP strategy, the asset is sold for the Curve pool’s underlying tokens. However, there is an edge case when one of the pool’s underlying tokens is ETH, in which case the trade execution fails because the TRADING_MODULE sends back ETH when ETH is requested, but the code expects WETH to be received.

Root Cause

First, when the ConvexCurve yield strategy is deployed, TOKEN_1 and TOKEN_2 are written to storage as follows: https://github.com/sherlock-audit/2025-06-notional-exponent/blob/82c87105f6b32bb362d7523356f235b5b07509f9/notional-v4/src/single-sided-lp/CurveConvex2Token.sol#L54-L55

Curve pools use the address 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE to show that one of the pool’s assets is native ETH. Here, we can see that if that’s the case, it’s set to ETH_ADDRESS, which is address(0). We can also confirm this from the comments above those lines.

https://github.com/sherlock-audit/2025-06-notional-exponent/blob/82c87105f6b32bb362d7523356f235b5b07509f9/notional-v4/src/single-sided-lp/AbstractSingleSidedLP.sol#L181-L219

Now, when the user deposits the asset token and wants to sell some of it for the other underlying Curve token, which is native ETH, then trade.buyToken will be address(0), which translates to ETH_ADDRESS in the Notional codebase.

Solidity
trade = Trade({
    tradeType: t.tradeType,
    sellToken: address(asset),
    buyToken: address(tokens[i]),
    amount: t.tradeAmount,
    limit: t.minPurchaseAmount,
    deadline: block.timestamp,
    exchangeData: t.exchangeData
});

After executeTrade is called in TRADING_MODULE, the strategy contract will receive native ETH not WETH! We can also confirm from the TradingModule implementation that if the buyToken is ETH (address(0)), it's ensured that even WETH receivables are withdrawn to ETH, making sure the user receives native ETH instead of WETH: https://github.com/notional-finance/leveraged-vaults/blob/7e0abc3e118db0abb20c7521c6f53f1762fdf562/contracts/trading/TradingUtils.sol#L164-L172

After these operations, the contract now has some asset balance and some native ETH balance and is ready to LP into the Curve pool with msg.value. The following lines are next: https://github.com/sherlock-audit/2025-06-notional-exponent/blob/82c87105f6b32bb362d7523356f235b5b07509f9/notional-v4/src/single-sided-lp/CurveConvex2Token.sol#L180-L196

Solidity
uint256 msgValue;
if (TOKEN_1 == ETH_ADDRESS) {
    msgValue = _amounts[0];
} else if (TOKEN_2 == ETH_ADDRESS) {
    msgValue = _amounts[1];
}
if (msgValue > 0) WETH.withdraw(msgValue);

As we can see here, msgValue will indeed be greater than 0, and then WETH.withdraw will be called. However, we already have ETH balance and no WETH — so the withdraw will revert.

Internal Pre-conditions

  1. Curve pool used has ETH as underlying

External Pre-conditions

None needed

Attack Path

Happens naturally

Impact

Users wont be able to deposit on both tokens if the asset is one of the curve lp. If the asset is not one of the curve lp then users will not be able to deposit at all If the reward token is WETH then everything can be messed up because of withdrawing the WETH.

So, high.

PoC

No response

Mitigation

Remove the WETH.withdraw since the ETH is received natively to yield strategy

Discussion

sherlock-admin2

The protocol team fixed this issue in the following PRs/commits: https://github.com/notional-finance/notional-v4/pull/26

jeffywu

Actually looking closer at this issue, it's unlikely that this scenario would ever occur in practice. This would require that we borrow some token and then trade it into ETH for a ETH/<some other token> pool. Generally speaking, there will be insufficient lending liquidity for any token paired with ETH. To enter into such a pool you would almost certainly already be borrowing ETH and you would never trade into ETH.

The original report as published on Sherlock, by elolpuer. Images and videos are our own copies; raw HTML is shown as text. View it on Sherlock.

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 strategy assumes it will receive WETH from the trade, but the trading module returns native ETH when ETH is the buy token, leading to a failed WETH withdrawal.

Impact

Users cannot deposit into the strategy for pools with ETH as an underlying token, and if the reward token is WETH, further issues may occur.

What the attacker needed

Curve pool has ETH as underlying

The fix

The WETH.withdraw call should be removed because the strategy already receives native ETH.

How it was found

  1. Deploy the ConvexCurve yield strategy with a Curve pool that has ETH as an underlying token.
  2. User deposits the asset token into the single-sided LP strategy.
  3. The strategy sells part of the asset for ETH via the trading module.
  4. The trading module sends native ETH to the strategy.
  5. The strategy attempts to withdraw WETH equal to the ETH amount, but has no WETH, causing a revert.

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.

When you deposit into a special savings pool, the system sometimes swaps your token for another token in the pool. If that other token is ETH (the native cryptocurrency of Ethereum), the system receives ETH but then tries to take out WETH (a wrapped version of ETH) from its balance. Since it has no WETH, the transaction fails and you cannot deposit.

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.

More by elolpuer

View all

1 more disclosed report, best first.

More from Notional Exponent

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.