# `COLLATERAL_THRESHOLD` should be set to `125%` instead of `120%`.

Discontinuous BondToken redeem rate at 120% collateral threshold causes LeverageToken holders to lose value when TVL rises.

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

**Target:** Pool.sol getRedeemAmount
**Root cause:** Redeem rate jumps from <=96 to 100 when collateralLevel crosses 120%, because the multiplier-based formula at <=120% yields at most 96 while the else branch returns 100.
**Steps:**
1. Set pool state: TVL=1190, bondSupply=10, collateralLevel=119%.
2. Compute BondToken TVL: 1190*0.8=952; LeverageToken TVL: 1190*0.2=238.
3. Increase TVL to 1210 (collateralLevel=121%).
4. BondToken TVL becomes 100*10=1000; LeverageToken TVL becomes 1210-100=210.
5. Observe LeverageToken holders lose 28 despite TVL increase.
**How found:** Noticed the redeemRate formula is discontinuous at COLLATERAL_THRESHOLD: below it, rate <= 96; above it, rate = 100.
**Exploitation:** Not an attack; a design flaw causing value transfer from LeverageToken to BondToken holders when TVL crosses the threshold.
**Insight:** Check for discontinuities in piecewise pricing formulas at threshold boundaries; small TVL changes can cause large value shifts.

