# Users are incentivized  to not withdraw immediately after the market is closed

Closed Wildcat market keeps adding new withdrawals to an old expiry batch, dragging the shared rate down and incentivizing users to lock funds for months.

- Payout: Audit contest
- Severity: medium
- Program: Wildcat
- Found by: deadrxsezzz
- Disclosed: 2024-10-24
- Write-up quality: 6/10
- Original: https://github.com/code-423n4/2024-08-wildcat-findings/issues/121
- Library page: https://bugbountylibrary.com/r/c4%3A2024-08-wildcat%3AM-01
- Tags: area:web3 domain:web3 impact:funds-loss kind:contest platform:code4rena sev:medium tech:evm tech:solidity vuln:accounting-error vuln:business-logic

**Target:** Wildcat market withdrawal/expiry batch logic (Solidity contract)
**Root cause:** All withdraw requests in a batch are paid at one shared rate; after a market closes, new requests join the existing pending expiry batch whose older, lower rate drags the overall rate down until expiry.
**Steps:**
1. Create a withdraw batch with a 1-year expiry.
2. 6 months in, batch holds half the market value; market closes; current rate 1.12, batch filled at 1.06.
3. New withdrawers are added to the same old batch at the dragged-down ~1.06 rate.
4. Users either withdraw now at ~1.06 or wait 6 months for 1.12, incentivizing lock-up of idle funds.
**How found:** Reasoned about batch-level shared-rate accounting: noticed new withdraw requests after market close are appended to the pre-existing expiry batch, so the old batch's rate applies to everyone.
**Insight:** In batched withdrawal/queue designs where a single rate applies per batch, check what happens to the batch when the market state changes (close/pause) mid-batch — stale batches can trap or misprice later entrants.

