# Incorrect assumption that one (1) Pendle Standard Yield (SY) token is equal to one (1) Yield Token when computing the price in the oracle

PendlePTOracle assumes 1 SY equals 1 yield token, inflating PT price when SY redemption incurs slippage/fees, letting users over-borrow against overvalued collateral.

- Payout: Audit contest
- Severity: high
- Program: Notional
- Found by: mstpr-brainbot
- Disclosed: 2025-06-27
- Write-up quality: 6/10
- Original: https://github.com/sherlock-audit/2025-06-notional-exponent-judging/issues/689
- Library page: https://bugbountylibrary.com/r/sherlock%3A2025-06-notional-exponent%3AH-8
- Tags: area:web3 domain:web3 impact:funds-loss kind:contest platform:sherlock sev:high tech:solidity technique:source-review vuln:accounting-error vuln:oracle-manipulation

**Target:** PendlePTOracle price oracle (Pendle PT strategy)
**Root cause:** Oracle multiplies yield-token USD price by PT-to-SY rate, assuming 1 SY == 1 yield token; some SY redeem paths incur slippage/fees so SY is worth less than the yield token.
**Steps:**
1. Deploy Pendle PT strategy with `useSyOracleRate_ = true` so `_getPTRate()` calls `PENDLE_ORACLE.getPtToSyRate()`.
2. `_calculateBaseToQuote()` computes `answer = ptRate * baseToUSD / baseToUSDDecimals`, where `baseToUSD` is the yield-token price.
3. For an SY whose `redeem()` incurs slippage/fees (e.g. 1 SY = 0.95 yield token), the computed PT price is inflated by ~5%.
4. Borrow against the overvalued PT collateral to exceed intended LTV.
**How found:** Code review of `_getPTRate`/`_calculateBaseToQuote` combined with reading Pendle's `IStandardizedYield.redeem` to notice SY redemption can involve swaps/fees, breaking the 1:1 assumption.
**Exploitation:** Attacker deposits PT collateral priced via the inflated oracle and borrows more than the true value supports, leaving bad debt risk to the protocol.
**Insight:** When an oracle composes a share-token rate with an underlying price feed, verify the share-to-asset conversion is truly 1:1 by reading the share contract's redeem/withdraw path for slippage or fees rather than assuming parity.

