Pendle Risk Engine

The Pendle Risk Engine is a smart contract used to price out Pendle PT tokens, which are used often by lending protocols to allow users to "loop" and increase their exposure to a particular asset. This particular design was commissioned by Morpho's DAO.

There are two ways to often price this asset: either by the trading price of the Pendle PT (using TWAP), or by taking the linear discount of the Pendle PT up until expiry. Curators may choose one or the other for different assets for different reasons. Our risk engine takes both of these as feeds and outputs the lower of the two. This prices the PT at the lowest possible value, which makes the experience better for the lender, and may reduce potential bad debt.

Disclaimer: No risk strategy can 100% protect against any type of attack. This risk engine should be considered a part of a broader risk strategy - we provide absolutely no warranty of effectiveness. Pendle Risk Engines require two price feeds: the TWAP price feed of a PT and the linear discount of a feed. These can often be found in pendle's docs.

  1. On etherscan, take the TVWAP price feed address and a linear discount price, and input them into the "createOjoPTFeed" tx

  2. Commit the tx

  3. Done! You'll see you created a new contract which can be used as an oracle in popular lending platforms.

Example tx: https://etherscan.io/tx/0x6d5a556e210cebd6d7decd6186372f9e8c6c3950a2893af19f2daff69430481c

Example spawned feed: https://etherscan.io/address/0xb3c6ff1a065e39834e1bd5cb52f86773f16b52df#readContract

Last updated