360 Secure SkillHub
360 安全技能中心

Pendle maturity planner

针对指定链、市场和代币,读取 Pendle 市场到期与代币信息,比较持有 PT 到期、到期前卖出与赎回三条路径,核算成本与约束,输出含区块时间、原始单位与假设的决策记录;写入请求仅准备未签名序列并模拟。

galleonlabs
热度 14.68
最近更新 2026-10-09 16:52:56
分类:数据依赖:第三方 API应用场景:财务 / 市场分析 / 报告撰写 / 研究 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add galleon-pendle-maturity
Metadata
name
galleon-pendle-maturity
description
Use when evaluating a Pendle PT or YT trade, comparing hold-to-maturity with an early exit, or redeeming a matured position.
license
MIT
compatibility
Read-only EVM RPC or official provider tools; Bun is optional for offline examples. No signer required.
metadata
{"version":"0.2.1","author":"Andrew Wilkinson and Galleon Labs","source":"https://github.com/galleonlabs/crypto-defi-skills"}

Pendle maturity planner

Produce a maturity decision for an exact chain, market, SY, PT and YT. A token ticker plus date is insufficient. PT claims are denominated in the market's accounting asset; they are not universally a dollar or one unit of the receipt token.

Establish the instruments

Read the market's readTokens() and expiry(), then verify token addresses and underlying SY integration against official Pendle data. Record the chain block timestamp, not the laptop clock, for expiry decisions. Identify the SY accounting asset, supported redemption token, exchange rate and underlying protocol's withdrawal or cooldown restrictions. Do not treat an advertised PT rate as a dollar guarantee.

Separate PT principal, YT's pre-expiry yield exposure and LP inventory. If the user holds LP, first account for removal outputs; an LP token is not a PT balance. If tokens are posted as collateral elsewhere, an exit also requires that position's health check.

Compare the three paths

  • Hold PT: compute implied return in the accounting asset using the actual acquisition quote and remaining time. Deduct gas, fees and redemption costs. Annualization close to expiry can make a tiny absolute gain look attractive. Disclose depeg, underlying protocol and redemption constraints.
  • Sell before expiry: fetch an exact-size route through the maintained Hosted SDK; retain chain, market, token in/out, amount, min output, price impact, route timestamp and destination. A thin PT pool can make the realized exit materially worse than the display price. No quote means no executable exit estimate.
  • Redeem: before expiry, paired equal PT and YT amounts are needed for the paired redemption path; holding PT alone is insufficient. After expiry, principal redemption no longer needs matching YT. Follow the deployed router/Hosted SDK flow into SY or supported output and include any underlying cooldown. YT's future yield stream ends at expiry; separately account for already accrued claimable yield/rewards.

For comparison, show units and costs in the same accounting asset. Rewards/points are a separate speculative row, not guaranteed principal return. A rollover is an exit plus a new purchase with new maturity and risk; do not silently roll the position when the user only requested redemption.

Inspect the actual Hosted SDK response schema and transaction fields. Decode target, spender, recipient, value, amount and minimum output, then simulate the full route. Do not synthesize calldata from an old API example or use a price endpoint as a trade builder.

Evidence and completion

Return the requested decision, exact deployment and chain, block/time, raw-unit observations, calculation assumptions, and the next missing read. Distinguish an indexed estimate, an onchain read, a simulated call and a confirmed transaction. Research ends with an actionable decision record; it does not require connecting a wallet.

For a requested write, prepare the complete unsigned sequence and simulate with the actual sender, amount, recipient and allowance state. Preserve authorization already supplied; research does not grant debt, spending or signing authority. Never request keys. After an authorized transaction, verify its receipt and the relevant balance or position change. On an ambiguous timeout, reconcile its hash and nonce before retrying.

Read protocol references and worked record only for the selected operation. Documentation checked 2026-09-27; refresh deployments and current parameters at use time. This directory is independently installable.