# when ReserveBase undercollateralized , Manager.orders will not be able to execute

Manager._unwrapAndWithdraw assumes 1:1 DSU-to-USDC redemption, so when Reserve is undercollateralized, redeem returns less than amount and the USDC push reverts, blocking order execution.

- Payout: Audit contest
- Severity: medium
- Program: Perennial
- Found by: bin2chen
- Disclosed: 2024-08-17
- Write-up quality: 6/10
- Original: https://github.com/sherlock-audit/2024-08-perennial-v2-update-3-judging/issues/35
- Library page: https://bugbountylibrary.com/r/sherlock%3A2024-08-perennial-v2-update-3%3AM-5
- Tags: area:web3 domain:web3 impact:dos kind:contest platform:sherlock sev:medium tech:solidity technique:source-review vuln:accounting-error vuln:dos

**Target:** Perennial Order Manager contract (Manager.sol) interacting with Reserve/DSU
**Root cause:** _unwrapAndWithdaw calls reserve.redeem(amount) then pushes USDC for the full `amount`, ignoring that redeemPrice() caps at 1:1 and returns pro-rata less than `amount` when undercollateralized, causing insufficient balance.
**Steps:**
1. Alice places TriggerOrder with interfaceFee.unwrap=true and a price condition
2. Reserve becomes undercollateralized so redeemPrice() < 1:1
3. Price condition met; keeper calls executeOrder
4. _unwrapAndWithdaw calls reserve.redeem(amount) which yields less than amount
5. USDC.push(receiver, amount) reverts on insufficient balance, order never executes
**How found:** Code reading of _unwrapAndWithdaw against Reserve.redeemPrice() semantics: noticed redeem can return less than requested when undercollateralized while the code pushes the full amount.
**Insight:** When integrating a redeem/withdraw that returns a value, check whether the caller uses the requested amount vs the actual returned amount; pro-rata redemption ratios (capped at 1:1) are a common source of accounting mismatch.

