pendle-plugin

Generate and validate Pendle SDK calldata for PT and YT token trades and liquidity.

12|64|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/okx/plugin-store --skill pendle-plugin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pendle-plugin
Source: https://github.com/okx/plugin-store/tree/main/skills/pendle-plugin
Command: npx skills add https://github.com/okx/plugin-store --skill pendle-plugin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides an agent-enabled interface to discover Pendle markets, preview accurate on-chain calldata, and manage PT/YT trades and liquidity without manual SDK or ABI handling, reducing execution risk and developer friction.

Core Features & Use Cases

  • Market discovery & pricing: list active markets, return implied APY, liquidity, and historical data to choose suitable pools.
  • Trade and liquidity operations: preview and execute buy-pt, sell-pt, buy-yt, sell-yt, add-liquidity, remove-liquidity, mint-py, and redeem-py with validated SDK-generated calldata.
  • Safety and pre-flight validation: performs balance checks, enforces ERC-20 approvals, validates SDK calldata and router addresses, extracts expected outputs, reports price-impact warnings, and supports preview/dry-run/confirm flows.
  • Use case: preview a buy-pt quote on Arbitrum to show expected_pt_out and price impact, obtain user confirmation, then submit approvals and the router transaction via onchainos.

Quick Start

Preview a buy-pt quote on Arbitrum for a Pendle market and then re-run with confirm to execute the trade.

Frequently Asked Questions about pendle-plugin

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

FAQPage Schema
How do I generate valid calldata to buy or sell PT and YT tokens on Pendle?

To buy or sell Pendle PT and YT tokens, you can generate and validate SDK calldata for router transactions. This includes pre-flight balance checks, ERC-20 approval flows, and extracting expected outputs before broadcasting via onchainos.

Can I preview a Pendle liquidity quote and check price impact before executing a trade?

Yes, you can preview Pendle liquidity quotes to check price impact and expected outputs. The system supports preview and dry-run execution modes, allowing you to validate router calldata and ensure safety before confirming any on-chain transaction.

Does this Pendle SDK workflow support Arbitrum, BSC, and Base networks?

Yes, the Pendle SDK workflow supports Arbitrum, BSC, and Base networks. You can apply these workflows across these chains to list active markets, preview quotes, and manage PT and YT token operations seamlessly.

How do I manage Pendle liquidity and perform mint or redeem operations?

You can manage Pendle liquidity by generating validated SDK calldata to add or remove liquidity, mint-py, and redeem-py. The process enforces ERC-20 approvals and performs pre-flight balance checks to ensure safe execution on-chain.

What is the best way to discover active Pendle markets and check their implied APY?

The best way to discover active Pendle markets is to list them directly to return implied APY, liquidity, and historical data. This allows you to evaluate and choose suitable pools before generating any trading or liquidity calldata.