# A whale adversary can grief the redeem functionality through redeem limit consumption

Aegis redeem limit counter is incremented on requestRedeem but never decremented on withdraw/reject, letting a whale exhaust the period limit and block all other redemptions.

- Payout: Audit contest
- Severity: medium
- Program: Aegis Op Grant
- Found by: 0xDLG
- Disclosed: 2025-04-26
- Write-up quality: 6/10
- Original: https://github.com/sherlock-audit/2025-04-aegis-op-grant-judging/issues/497
- Library page: https://bugbountylibrary.com/r/sherlock%3A2025-04-aegis-op-grant%3AM-2
- Tags: area:web3 domain:web3 impact:dos kind:contest platform:sherlock sev:medium tech:solidity technique:source-review vuln:business-logic vuln:dos

**Target:** AegisMinting.sol redeem limit accounting
**Root cause:** _checkMintRedeemLimit increments limits.currentPeriodTotalAmount on requestRedeem, but withdrawRedeemRequest and _rejectRedeemRequest return YUSD without decrementing the counter.
**Steps:**
1. Read redeemLimit.maxPeriodAmount and periodDuration.
2. Build multiple REDEEM Order structs with unique nonces/additionalData and obtain trustedSigner signatures.
3. Call `requestRedeem(order, signature)` repeatedly until currentPeriodTotalAmount nears maxPeriodAmount.
4. Legitimate users' `requestRedeem` now reverts with LimitReached.
5. After order.expiry, call `withdrawRedeemRequest(requestId)` to reclaim YUSD; counter stays inflated.
6. DoS persists until period resets.
**How found:** Code review of limit accounting: noticed increment in _checkMintRedeemLimit with no matching decrement in withdraw/reject paths.
**Exploitation:** Attacker with large YUSD balance locks funds via repeated signed redeem requests to saturate the period limit, then withdraws after expiry to recover capital, costing only gas while blocking others' redemptions.
**Insight:** When auditing rate/period limit counters, trace every path that returns or refunds the limited asset and confirm the counter is symmetric; asymmetric increment/decrement enables cheap griefing DoS.

