# Failed auction period still update `sharesPerToken` like it is succeed

Failed auctions still record a nonzero sharesPerToken for the period, letting early bondETH holders claim coupon shares that were never funded, draining the distributor.

- Payout: Audit contest
- Severity: medium
- Program: Plaza Finance
- Found by: 056Security
- Disclosed: 2024-12-16
- Write-up quality: 6/10
- Original: https://github.com/sherlock-audit/2024-12-plaza-finance-judging/issues/48
- Library page: https://bugbountylibrary.com/r/sherlock%3A2024-12-plaza-finance%3AM-1
- Tags: area:web3 domain:web3 impact:funds-loss kind:contest platform:sherlock sev:medium tech:solidity technique:source-review vuln:accounting-error vuln:business-logic

**Target:** Auction/Pool/BondToken/Distributor coupon accounting
**Root cause:** increaseIndexedAssetPeriod pushes globalPool.sharesPerToken (default 2.5) into previousPoolAmounts regardless of whether the prior auction succeeded, so failed periods still accrue claimable shares.
**Steps:**
1. Auction 0 succeeds, 50 USDC coupon sent to Distributor; holders accrue 2.5 USD/bondETH
2. Auction 1 ends FAILED_UNDERSOLD, no coupon transferred to Distributor
3. Anyone calls `Pool.startAuction()`, which calls `bondToken.increaseIndexedAssetPeriod(sharesPerToken)`
4. previousPoolAmounts records period 1 with sharesPerToken=2.5 despite zero funding
5. Alice (held since period 0, 10 bondETH) calls `Distributor.claim()` and receives 10*5=50 USDC
6. Bob (also 10 bondETH) later calls claim and reverts NotEnoughSharesBalance
**How found:** Reading endAuction state transitions and noticing startAuction unconditionally calls increaseIndexedAssetPeriod, which snapshots sharesPerToken without checking prior auction outcome.
**Exploitation:** No capital needed; a bondETH holder simply claims after a failed auction period, receiving shares for an unfunded period and draining coupon balance meant for other holders.
**Insight:** When a period-based reward index is advanced by a permissionless starter function, check whether the prior period's success flag gates the index increment; failed rounds that still accrue shares create first-claimer-wins drains.

