# Minting yield tokens single sided can be impossible if CURVE_V2 dexId is used on redemptions

Withdrawing double-sided via CURVE_V2 on the strategy's own pool makes the trading module revoke USDC allowance, permanently blocking all future deposits.

- Payout: Audit contest
- Severity: medium
- Program: Notional
- Found by: mstpr-brainbot
- Disclosed: 2025-06-27
- Write-up quality: 6/10
- Original: https://github.com/sherlock-audit/2025-06-notional-exponent-judging/issues/320
- Library page: https://bugbountylibrary.com/r/sherlock%3A2025-06-notional-exponent%3AM-5
- Tags: area:web3 domain:web3 impact:dos kind:contest platform:sherlock sev:medium tech:evm tech:solidity technique:source-review vuln:dos

**Target:** Single-sided LP yield strategy (CurveConvex2Token) redemption swap path
**Root cause:** TradingUtils revokes the sellToken allowance after a swap; if the user routes the redemption swap through the same Curve pool the strategy LPs into, the strategy's infinite USDC allowance to that pool is zeroed.
**Steps:**
1. Strategy deploys with infinite USDC and crvUSD approvals to the Curve/Convex pool (`CurveConvex2Token.sol#L169-L178`)
2. Alice withdraws double-sided, receiving crvUSD+USDC, and sells USDC for crvUSD
3. Alice sets `dexId=CURVE_V2` and `trade.pool` = the same pool the strategy LPs into
4. Swap executes; `TradingUtils.sol#L54-L57` revokes sellToken (USDC) allowance to 0
5. Subsequent deposits revert: strategy no longer has allowance to mint LP tokens
**How found:** Code-reading of the redemption swap path: noticed `dexId`/pool is user-supplied and unrestricted, then traced that the trading module's post-swap allowance revocation targets the same token the strategy relies on for deposits.
**Exploitation:** Any user performing a legitimate double-sided withdrawal with a self-chosen CURVE_V2 swap pool equal to the strategy pool triggers allowance revocation, bricking deposits for all users. No capital or special privileges needed.
**Insight:** When a protocol revokes approvals after user-directed swaps, check whether the user can point the swap at the protocol's own trusted spender/pool, converting a safety cleanup into destruction of the protocol's standing allowance.

