pendle

Implements Pendle yield tokenization operations including PT/YT trading, SY wrapping, and liquidity provision.

6|20|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/andresdefi/cryptoskills --skill pendle-andresdefi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pendle
Source: https://github.com/andresdefi/cryptoskills/tree/main/skills/pendle
Command: npx skills add https://github.com/andresdefi/cryptoskills --skill pendle-andresdefi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires viem, @pendle/sdk-v2.

What problem does it solve? AI agents frequently misunderstand Pendle's token mechanics, hallucinate contract addresses, and use outdated integration patterns, which can lead to failed transactions or lost funds when interacting with the Pendle yield tokenization protocol. ## Core Features & Use Cases - PT/YT Trading: Buy PT to lock in fixed yield or buy YT for leveraged yield exposure through the Pendle Router with proper slippage protection and binary search parameters. - SY Wrapping and Minting: Wrap yield-bearing tokens into SY (ERC-5115), mint PT+YT, and redeem positions before or after maturity. - Liquidity and Oracle Operations: Add or remove single-token liquidity, read implied APY from market state, and query TWAP oracle rates for collateral pricing. - Use Case: A developer building a fixed-yield strategy can use the provided viem templates to preview PT output via PendleRouterStatic, execute swapExactTokenForPt with 1% slippage, and redeem PT 1:1 at maturity. ## Quick Start Ask the agent to read the implied APY from a Pendle market and buy PT with 1 WETH using the pendle-client template with your RPC_URL and PRIVATE_KEY set.

Frequently Asked Questions about pendle

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I buy PT on Pendle to lock in a fixed yield?

Call swapExactTokenForPt on the PendleRouter with a guessPtOut struct for binary search and a minPtOut for slippage protection. Preview the expected output first using swapExactTokenForPtStatic on PendleRouterStatic, then apply a slippage tolerance of around 1%.

What is the difference between PT and YT in Pendle?

PT represents the principal redeemable 1:1 for the underlying at maturity and trades at a discount before then. YT represents all yield generated until maturity, decays to zero value at expiry, and provides leveraged yield exposure.

Does Pendle work on Arbitrum as well as Ethereum?

Yes, Pendle v2 is deployed on both Ethereum mainnet and Arbitrum with the same Router and RouterStatic addresses on both chains. Market-specific contracts like SY, PT, and YT tokens differ per chain and per maturity date.

Why does my Pendle transaction revert with ApproxFail?

ApproxFail occurs when the Router's binary search cannot converge within maxIteration. Widen the guessMin and guessMax range, pass a previewed value as guessOffchain, or increase maxIteration beyond the default 256.

How do I use the Pendle oracle for PT collateral pricing?

Call getPtToAssetRate on the PendlePtOracle contract with the market address and a TWAP duration such as 900 seconds. The market's observation cardinality must be initialized first via increaseObservationsCardinalityNext, and the window must fill before the TWAP is reliable.

What happens to Pendle positions after market maturity?

After maturity the AMM stops accepting swaps, but PT redeems 1:1 for the underlying via redeemPyToToken or redeemPyToSy. Accrued YT yield remains claimable through redeemDueInterestAndRewards, and LPs must withdraw their liquidity.