pancakeswap
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePancakeSwap Skill Directory
PancakeSwap Skill 目录
This skill is a directory. Read the specific guide for the user's request using .
read_fileAll guides live under this skill folder, organized into three plugins:
本Skill是一个目录,请使用读取对应用户请求的具体指南。
read_file所有指南都存放在本Skill文件夹下,分为三个插件:
How to Use
使用方法
- Match the user's intent to a guide below
- the corresponding SKILL.md path
read_file - Follow the instructions in that guide
- 将用户意图与下方的指南匹配
- 使用读取对应的SKILL.md路径
read_file - 遵循该指南中的说明操作
pancakeswap-driver — Swaps & Liquidity
pancakeswap-driver — 兑换与流动性
swap-planner
swap-planner
Path:pancakeswap-driver/skills/swap-planner/SKILL.md
When to use: User wants to swap tokens on PancakeSwap — "swap BNB for USDT", "buy CAKE", "exchange tokens", "cross-chain swap", "bridge swap".
What it does: Discovers tokens, verifies contracts, fetches prices, generates a deep link. Does not execute transactions.
pancakeswap.finance/swap?...路径:pancakeswap-driver/skills/swap-planner/SKILL.md
适用场景: 用户希望在PancakeSwap上兑换代币——"将BNB兑换为USDT"、"购买CAKE"、"兑换代币"、"跨链兑换"、"桥接兑换"。
功能说明: 发现代币、验证合约、获取价格、生成深度链接。不执行交易。
pancakeswap.finance/swap?...liquidity-planner
liquidity-planner
Path:pancakeswap-driver/skills/liquidity-planner/SKILL.md
When to use: User wants to add liquidity — "add liquidity", "LP position", "provide liquidity", "earn yield with my ETH and USDT", "put tokens to work".
What it does: Plans LP positions (V2, V3, StableSwap, Infinity), recommends fee tiers and price ranges, assesses impermanent loss risk, generates add-liquidity deep links.
路径:pancakeswap-driver/skills/liquidity-planner/SKILL.md
适用场景: 用户希望添加流动性——"添加流动性"、"LP头寸"、"提供流动性"、"用我的ETH和USDT赚取收益"、"让代币产生收益"。
功能说明: 规划LP头寸(V2、V3、StableSwap、Infinity),推荐手续费层级和价格区间,评估无常损失风险,生成添加流动性的深度链接。
collect-fees
collect-fees
Path:pancakeswap-driver/skills/collect-fees/SKILL.md
When to use: User asks about uncollected LP fees — "collect my fees", "pending fees", "how much fees have I earned", "claim LP fees".
What it does: Checks uncollected fees across V3, Infinity, and Solana CLMM positions. Generates collection deep links.
Reference scripts: — fetch-v3-positions.mjs, fetch-infinity-positions.mjs, fetch-solana.cjs
collect-fees/references/路径:pancakeswap-driver/skills/collect-fees/SKILL.md
适用场景: 用户询问未收取的LP手续费——"收取我的手续费"、"待领取手续费"、"我赚了多少手续费"、"领取LP手续费"。
功能说明: 检查V3、Infinity和Solana CLMM头寸中的未收取手续费,生成收取手续费的深度链接。
参考脚本: — fetch-v3-positions.mjs, fetch-infinity-positions.mjs, fetch-solana.cjs
collect-fees/references/swap-integration
swap-integration
Path:pancakeswap-driver/skills/swap-integration/SKILL.md
When to use: Developer wants to integrate PancakeSwap swaps into an app — "integrate swaps", "Smart Router SDK", "Universal Router", "build swap frontend", "swap script".
What it does: SDK integration guide with working code for Smart Router, Universal Router, and direct V2 Router contract calls.
Shared utilities: — discover-pools.mjs, pool-apr.mjs, protocol-fee.mjs, farm-apr.py, token-lists.md
pancakeswap-driver/skills/common/路径:pancakeswap-driver/skills/swap-integration/SKILL.md
适用场景: 开发者希望将PancakeSwap兑换功能集成到应用中——"集成兑换功能"、"Smart Router SDK"、"Universal Router"、"构建兑换前端"、"兑换脚本"。
功能说明: SDK集成指南,包含Smart Router、Universal Router和直接调用V2 Router合约的可用代码。
共享工具: — discover-pools.mjs, pool-apr.mjs, protocol-fee.mjs, farm-apr.py, token-lists.md
pancakeswap-driver/skills/common/pancakeswap-farming — Farms & Staking
pancakeswap-farming — 耕作与质押
farming-planner
farming-planner
Path:pancakeswap-farming/skills/farming-planner/SKILL.md
When to use: User wants to farm or stake — "farm on PancakeSwap", "stake CAKE", "unstake CAKE", "yield farming", "syrup pool", "best farm APR", "deposit LP", "withdraw LP".
What it does: Discovers active farms, compares APR/APY, plans CAKE staking in Syrup Pools, generates farming UI deep links.
Note: If the user has a specific token pair and asks about yield, use instead.
liquidity-plannerReference scripts: — fetch-farms.py, fetch-syrup-pools.py
farming-planner/references/路径:pancakeswap-farming/skills/farming-planner/SKILL.md
适用场景: 用户希望进行耕作或质押——"在PancakeSwap上耕作"、"质押CAKE"、"解除CAKE质押"、"收益耕作"、"糖浆池"、"最佳耕作APR"、"存入LP"、"取出LP"。
功能说明: 发现活跃耕作池,对比APR/APY,规划糖浆池中的CAKE质押,生成耕作UI深度链接。
注意: 如果用户针对特定代币对询问收益,请使用。
liquidity-planner参考脚本: — fetch-farms.py, fetch-syrup-pools.py
farming-planner/references/harvest-rewards
harvest-rewards
Path:pancakeswap-farming/skills/harvest-rewards/SKILL.md
When to use: User wants to claim rewards — "harvest rewards", "claim CAKE", "pending rewards", "how much can I harvest", "collect farming rewards".
What it does: Checks pending CAKE and partner-token rewards across V2, V3, Infinity farms and Syrup Pools. Generates harvest deep links.
Reference scripts: — fetch-v3-pending.py, fetch-infinity-pending.py, fetch-syrup-pending.py
harvest-rewards/references/路径:pancakeswap-farming/skills/harvest-rewards/SKILL.md
适用场景: 用户希望领取奖励——"提取奖励"、"领取CAKE"、"待领取奖励"、"我能提取多少奖励"、"收取耕作奖励"。
功能说明: 检查V2、V3、Infinity耕作池和糖浆池中的待领取CAKE及合作代币奖励,生成提取奖励的深度链接。
参考脚本: — fetch-v3-pending.py, fetch-infinity-pending.py, fetch-syrup-pending.py
harvest-rewards/references/pancakeswap-hub — PCS Hub Distribution
pancakeswap-hub — PCS Hub 分发
hub-swap-planner
hub-swap-planner
Path:pancakeswap-hub/skills/hub-swap-planner/SKILL.md
When to use: User wants to swap via PCS Hub — "PCS Hub swap", "swap via Binance Wallet", "swap via Trust Wallet", "hub route".
What it does: Fetches optimal routing via PCS Hub aggregator API, generates channel-specific handoff links. BSC only.
路径:pancakeswap-hub/skills/hub-swap-planner/SKILL.md
适用场景: 用户希望通过PCS Hub进行兑换——"PCS Hub兑换"、"通过Binance Wallet兑换"、"通过Trust Wallet兑换"、"Hub路由"。
功能说明: 通过PCS Hub聚合器API获取最优路由,生成特定渠道的转交链接。仅支持BSC链。
hub-api-integration
hub-api-integration
Path:pancakeswap-hub/skills/hub-api-integration/SKILL.md
When to use: Developer wants to embed PCS Hub — "integrate PCS Hub", "embed PCS Hub swap", "Hub integration spec", "add PCS Hub to my wallet app".
What it does: Integration spec with API contracts, frontend state machine, allowance checking, and quote TTL management.
Shared utilities: — token-lists.md
pancakeswap-hub/skills/common/路径:pancakeswap-hub/skills/hub-api-integration/SKILL.md
适用场景: 开发者希望嵌入PCS Hub——"集成PCS Hub"、"嵌入PCS Hub兑换"、"Hub集成规范"、"将PCS Hub添加到我的钱包应用"。
功能说明: 集成规范,包含API合约、前端状态机、额度检查和报价TTL管理。
共享工具: — token-lists.md
pancakeswap-hub/skills/common/Supported Chains
支持的链
| Chain | ID | V2 | V3 | Infinity | StableSwap |
|---|---|---|---|---|---|
| BNB Smart Chain | 56 | + | + | + | + |
| Ethereum | 1 | + | + | - | + |
| Arbitrum One | 42161 | + | + | - | + |
| Base | 8453 | + | + | + | - |
| zkSync Era | 324 | + | + | - | - |
| Linea | 59144 | + | + | - | - |
| opBNB | 204 | + | + | - | - |
| Monad | 143 | + | + | - | - |
| 链名称 | ID | V2 | V3 | Infinity | StableSwap |
|---|---|---|---|---|---|
| BNB智能链 | 56 | + | + | + | + |
| 以太坊 | 1 | + | + | - | + |
| Arbitrum One | 42161 | + | + | - | + |
| Base | 8453 | + | + | + | - |
| zkSync Era | 324 | + | + | - | - |
| Linea | 59144 | + | + | - | - |
| opBNB | 204 | + | + | - | - |
| Monad | 143 | + | + | - | - |
Resources
资源
- App: https://pancakeswap.finance/
- Dev Docs: https://developer.pancakeswap.finance/
- BSCScan: https://bscscan.com/
- Smart Router SDK:
@pancakeswap/smart-router - Universal Router SDK:
@pancakeswap/universal-router-sdk
- 应用:https://pancakeswap.finance/
- 开发者文档:https://developer.pancakeswap.finance/
- BSCScan:https://bscscan.com/
- Smart Router SDK:
@pancakeswap/smart-router - Universal Router SDK:
@pancakeswap/universal-router-sdk