# Users can sell `BondToken` at a higher price by manipulating the `collateralLevel` from `< 120%` to `> 120%` by purchasing `LeverageToken`.

Buying LeverageToken raises pool collateralLevel past 120%, flipping BondToken redemption from 80% TVL share to fixed $100, letting redeemers extract excess value.

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

**Target:** Pool.sol getRedeemAmount / BondToken redemption
**Root cause:** getRedeemAmount branches on collateralLevel <= 120%: below threshold BondToken redeems at 80% of TVL share, above it redeems at fixed BOND_TARGET_PRICE. Buying LeverageToken adds TVL and pushes collateralLevel over the threshold, changing the redemption formula.
**Steps:**
1. Pool state: levSupply=100, bondSupply=100, TVL=$11000; Bob holds 50 BondToken
2. Without manipulation: collateralLevel=(11000-100*50)/(100-50)=120%, redeemRate=11000*0.8/100=88, Bob gets 50*88=4400
3. Bob buys 10 LeverageToken for $220: levSupply=110, TVL=11220
4. Bob redeems 50 BondToken: collateralLevel=(11220-100*50)/(100-50)=124.4% > 120%, redeemRate=100, receives 5000
5. Bob sells back 10 LeverageToken at price (6220-100*50)/110=11, receives 110
6. Net: -220+5000+110=4890 vs 4400 baseline, profit 490
**How found:** Code reading of getRedeemAmount revealed a discontinuous price formula at the 120% collateralLevel threshold, and that buying LeverageToken increases TVL and thus collateralLevel, making the threshold manipulable within a single transaction sequence.
**Exploitation:** Attacker buys LeverageToken to nudge collateralLevel above 120%, redeems BondToken at the fixed $100 rate instead of the 80%-TVL rate, then unwinds the LeverageToken position, netting the difference.
**Insight:** When a redemption/price formula has a hard branch on a ratio (collateralLevel threshold), check whether any user action (minting the other token, donating TVL) can push that ratio across the boundary to select the more favorable branch.

