pendle

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

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

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 pairs, 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 vault 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 minPtOut slippage bound and a guessPtOut struct for the binary search. Preview the expected output first using swapExactTokenForPtStatic on PendleRouterStatic, then apply roughly 1% slippage tolerance.

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 address 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 means the Router's binary search did not converge within maxIteration. Widen the guessMin and guessMax range, pass a previewed value as guessOffchain, or increase maxIteration beyond the default 256.

Can I use Pendle PT as collateral in a lending protocol?

Yes, but you must price PT using the PendlePtOracle TWAP with a sufficient observation window such as 900 seconds, never the instantaneous rate. The market's oracle cardinality must be initialized and filled before the TWAP is reliable.

What happens to Pendle LP positions after market maturity?

After maturity the AMM stops accepting swaps, so LPs must withdraw liquidity via removeLiquiditySingleToken. PT can still be redeemed 1:1 for the underlying and accrued YT yield remains claimable through redeemDueInterestAndRewards.