# Revert in `getWithdrawRequestValue()` function will brick the account

Zero exit balance for one Curve pool token skips withdraw request creation, making getWithdrawRequestValue revert and bricking the account's Morpho price feed.

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

**Target:** AbstractSingleSidedLP.getWithdrawRequestValue / initiateWithdraw (Morpho price oracle path)
**Root cause:** getWithdrawRequestValue requires hasRequest for every pool token, but initiateWithdraw skips creating a request when exitBalances[i]==0, so a zero exit balance leaves a token without a request and the require reverts.
**Steps:**
1. Observe initiateWithdraw skips `if (exitBalances[i] == 0) continue;` so no withdraw request is created for that token.
2. Cause an exit balance to round to zero: near-zero token balance, tiny position with low-decimal token (USDC 6, WBTC 8), or depeg depleting a token.
3. Call initiateWithdraw with that zero exitBalance; request for that token is never created.
4. Morpho calls price() -> getWithdrawRequestValue(), which loops tokens and hits `require(hasRequest)` reverting.
5. Account position is stuck: exit, repay, withdraw collateral, and liquidation all fail.
**How found:** Code reading of getWithdrawRequestValue's require(hasRequest) against initiateWithdraw's zero-balance skip; then reasoned about rounding and depeg scenarios that produce a zero exit balance.
**Escalation:** Bricked account cannot be liquidated or exited, locking funds permanently.
**Insight:** When a valuation loop requires a per-token record to exist, check every path that creates those records for skip conditions (zero amounts, rounding, depeg) — a missing record turns a view into a permanent revert that bricks oracle-dependent positions.

