Skip to content
Audit finding Intermediate

Incorrect assumption of fixed 1e18 scaling in Pendle PT Oracle Rate

The OraclePendlePT contract assumes Pendle's getPtToSyRate() always returns a 1e18-scaled rate, but some markets return larger decimals, causing incorrect PT pricing. This could break collateral valuation and liquidation, potentially leading to protocol fund loss.

0xSolus Follow with 0xdoichantran, Artur and 20 others

Originally disclosed on Sherlock

Source: https://github.com/sherlock-audit/2025-08-usg-tangent-judging/issues/40

Found by

0xSolus, 0xdoichantran, Artur, AuditorPraise, BADROBINX, Bluedragon, Brene, ExtraCaterpillar, Oxsadeeq, Pro_King, Suryaa__, Tigerfrake, X0sauce, ck, covey0x07, greekfreakxyz, lucky-gru, magickenn, newspacexyz, roshark, shieldrey, tobi0x18, v1c7

Summary

The OraclePendlePT contract assumes that the getPtToSyRate() function from Pendle's oracle always returns a rate scaled to 1e18. However, some Pendle markets (e.g., 0x83916356556f51dcBcB226202c3efeEfc88d5eaA) return values with larger decimal scaling, which causes incorrect PT pricing.

Root Cause

https://github.com/sherlock-audit/2025-08-usg-tangent/blob/main/tangent-contracts/src/USG/Oracles/Pendle/OraclePendlePT.sol#L45 getPtToSyRate() function will return ptRate in larger decimals for some markets.

Internal Pre-conditions

.

External Pre-conditions

.

Attack Path

For market: 0x83916356556f51dcBcB226202c3efeEfc88d5eaA https://etherscan.io/address/0x9a9Fa8338dd5E5B2188006f1Cd2Ef26d921650C2#readProxyContract#F7 [ getPtToSyRate(address,uint32) method Response ] uint256 : 999837196509292391919823695 The decimals is not 1e18.

Impact

Incorrect ptRate will cause the incorrect price returned by the oracle. This will be critical for contracts such as Collateral couldn't work properly. Due to this, liquidation won't work and protocol will lose funds.

PoC

No response

Mitigation

No response

Discussion

sherlock-admin2

The protocol team fixed this issue in the following PRs/commits: https://github.com/Tangent-labs/tangent-contracts/pull/121

The original report as published on Sherlock, by 0xSolus. Images and videos are our own copies; raw HTML is shown as text. View it on Sherlock.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the oracle hard-codes a 1e18 scaling assumption instead of reading or normalising the actual decimals returned by Pendle's getPtToSyRate().

Impact

Incorrect ptRate could make the oracle return wrong prices, so collateral may not work properly, liquidation may fail, and the protocol could lose funds.

What the attacker needed

Pendle market returns rate with >18 decimals

The fix

The protocol team fixed this issue in a pull request.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A smart contract oracle reads a price from another system and assumes it is formatted with 18 decimal places. Some markets return numbers with more decimals, so the price is misread as much larger than it should be. That wrong price can stop collateral checks and liquidations from working correctly.

More by 0xSolus

View all

1 more disclosed report, best first.

More from USG - Tangent

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.