grimoire-pendle by franalgaba/grimoire
npx skills add https://github.com/franalgaba/grimoire --skill grimoire-pendle使用此技能可在运行法术前检查 Pendle 元数据并预检 Pendle 路由配置。
推荐调用方式:
grimoire venue pendle ...npx -y @grimoirelabs/cli venue pendle ... (免安装)bun run packages/cli/src/index.ts venue pendle ... (仓库本地)grimoire-pendle ... (来自 @grimoirelabs/venues 的直接二进制文件)推荐的预检命令:
grimoire venue doctor --adapter pendle --chain 1 --rpc-url <rpc> --jsongrimoire venue pendle info [--base-url <url>] [--format <auto|json|table>]广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
grimoire venue pendle chains [--base-url <url>] [--format <auto|json|table>]grimoire venue pendle supported-aggregators --chain <id> [--base-url <url>] [--format <auto|json|table>]grimoire venue pendle markets [--chain <id>] [--active <true|false>] [--base-url <url>] [--format <auto|json|table>]grimoire venue pendle assets [--chain <id>] [--type <PT|YT|LP|SY>] [--base-url <url>] [--format <auto|json|table>]grimoire venue pendle market-tokens --chain <id> --market <address> [--base-url <url>] [--format <auto|json|table>]grimoire venue pendle info --format table
grimoire venue pendle chains
grimoire venue pendle supported-aggregators --chain 1 --format json
grimoire venue pendle markets --chain 1 --active true --format table
grimoire venue pendle assets --chain 8453 --type PT --format table
grimoire venue pendle market-tokens --chain 8453 --market 0x... --format json
在 .spell 文件中编写 Pendle 操作时,请使用 with 子句:
pendle.swap(PT_TOKEN, SY_TOKEN, params.amount) with (
max_slippage=100,
require_quote=true,
)
| 约束 | 类型 | 描述 |
|---|---|---|
max_slippage | 整数 (基点) | 最大滑点,验证为 [0, 10000] 范围内的整数,在调用 API 前转换为小数 |
min_output | 整数 (wei) | 最小输出金额下限 |
require_quote | 布尔值 | 如果 Pendle API 报价失败则操作失败 |
max_gas | 整数 (wei) | Gas 估算上限 |
Pendle 的 swap 仅支持 mode: exact_in。不支持 exact_out。
当 Pendle API 返回多条路由时,适配器会选择第一条(最佳)路由并通过 onWarning 发出警告。在非 JSON 模式的 CLI 运行中会记录此警告。
https://api-v2.pendle.finance/core。--base-url 或环境变量 PENDLE_API_BASE_URL 覆盖基础 URL。--format json。swap 目前仅支持 mode: exact_in。assetOut, outputs),请使用裸地址字面量(0x...),而不是带引号的字符串(\"0x...\")。QUOTED_ADDRESS_LITERAL。max_slippage 在发送 API 请求前会被验证为 [0, 10000] 范围内的整数基点,并转换为小数(基点 / 10000)。每周安装量
928
代码仓库
GitHub 星标数
1
首次出现
2026年2月20日
安全审计
安装于
opencode928
github-copilot928
codex928
amp928
kimi-cli928
gemini-cli928
Use this skill to inspect Pendle metadata and preflight Pendle routing configuration before running spells.
Preferred invocations:
grimoire venue pendle ...npx -y @grimoirelabs/cli venue pendle ... (no-install)bun run packages/cli/src/index.ts venue pendle ... (repo-local)grimoire-pendle ... (direct binary from @grimoirelabs/venues)Recommended preflight:
grimoire venue doctor --adapter pendle --chain 1 --rpc-url <rpc> --jsongrimoire venue pendle info [--base-url <url>] [--format <auto|json|table>]grimoire venue pendle chains [--base-url <url>] [--format <auto|json|table>]grimoire venue pendle supported-aggregators --chain <id> [--base-url <url>] [--format <auto|json|table>]grimoire venue pendle markets [--chain <id>] [--active <true|false>] [--base-url <url>] [--format <auto|json|table>]grimoire venue pendle assets [--chain <id>] [--type <PT|YT|LP|SY>] [--base-url <url>] [--format <auto|json|table>]grimoire venue pendle market-tokens --chain <id> --market <address> [--base-url <url>] [--format <auto|json|table>]grimoire venue pendle info --format table
grimoire venue pendle chains
grimoire venue pendle supported-aggregators --chain 1 --format json
grimoire venue pendle markets --chain 1 --active true --format table
grimoire venue pendle assets --chain 8453 --type PT --format table
grimoire venue pendle market-tokens --chain 8453 --market 0x... --format json
When writing Pendle actions in .spell files, use with clauses:
pendle.swap(PT_TOKEN, SY_TOKEN, params.amount) with (
max_slippage=100,
require_quote=true,
)
| Constraint | Type | Description |
|---|---|---|
max_slippage | integer (bps) | Maximum slippage, validated as integer in [0, 10000], converted to decimal for API |
min_output | integer (wei) | Minimum output amount floor |
require_quote | boolean | Fail if Pendle API quote fails |
max_gas | integer (wei) | Gas estimate cap |
Pendle swap only supports mode: exact_in. exact_out is not supported.
When the Pendle API returns multiple routes, the adapter selects the first (best) route and emits a warning via onWarning. This is logged in non-JSON CLI runs.
https://api-v2.pendle.finance/core.--base-url or PENDLE_API_BASE_URL.--format json for automation and nested payloads.swap currently supports mode: exact_in only.assetOut, outputs), use bare address literals (0x...) and not quoted strings (\"0x...\").Weekly Installs
928
Repository
GitHub Stars
1
First Seen
Feb 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode928
github-copilot928
codex928
amp928
kimi-cli928
gemini-cli928
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装
Gemini Interactions API 指南:统一接口、智能体交互与服务器端状态管理
833 周安装
Apollo MCP 服务器:让AI代理通过GraphQL API交互的完整指南
834 周安装
智能体记忆系统构建指南:分块策略、向量存储与检索优化
835 周安装
Scrapling官方网络爬虫框架 - 自适应解析、绕过Cloudflare、Python爬虫库
836 周安装
抽奖赢家选取器 - 随机选择工具,支持CSV、Excel、Google Sheets,公平透明
838 周安装
Medusa 前端开发指南:使用 SDK、React Query 构建电商商店
839 周安装
QUOTED_ADDRESS_LITERAL.max_slippage is validated as integer bps in [0, 10000] and converted to decimal (bps / 10000) before API requests.