grimoire-pendle
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGrimoire Pendle Skill
Grimoire Pendle Skill
Use this skill to inspect Pendle metadata and preflight Pendle routing configuration before running spells.
Preferred invocations:
grimoire venue pendle ...- (no-install)
npx -y @grimoirelabs/cli venue pendle ... - (repo-local)
bun run packages/cli/src/index.ts venue pendle ... - (direct binary from
grimoire-pendle ...)@grimoirelabs/venues
Recommended preflight:
grimoire venue doctor --adapter pendle --chain 1 --rpc-url <rpc> --json
使用此技能可在执行spells前检查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> --json
Commands
命令
grimoire 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 [--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>]
Examples
示例
bash
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 jsonbash
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 jsonNotes
注意事项
- Default API base URL is .
https://api-v2.pendle.finance/core - Override base URL with or
--base-url.PENDLE_API_BASE_URL - Use for automation and nested payloads.
--format json - Pendle currently supports
swaponly.mode: exact_in - Aggregators are disabled by default in adapter actions unless explicitly enabled.
- For Pendle token outputs (,
assetOut), use bare address literals (outputs) and not quoted strings (0x...).\"0x...\" - Quoted address-like token values trigger validator code .
QUOTED_ADDRESS_LITERAL - is validated as integer bps in
max_slippageand converted to decimal ([0, 10000]) before API requests.bps / 10000
- 默认API基础URL为。
https://api-v2.pendle.finance/core - 可使用参数或
--base-url环境变量覆盖基础URL。PENDLE_API_BASE_URL - 对于自动化场景和嵌套负载,使用格式。
--format json - Pendle的功能目前仅支持
swap模式。mode: exact_in - 聚合器在适配器操作中默认禁用,除非显式开启。
- 对于Pendle代币输出(、
assetOut),请使用裸地址字面量(outputs),而非带引号的字符串(0x...)。"0x..." - 带引号的类地址代币值会触发验证器代码。
QUOTED_ADDRESS_LITERAL - 会被验证为
max_slippage范围内的整数bps,在发送API请求前会转换为小数([0, 10000])。bps / 10000