Plan yield farming and CAKE staking on PancakeSwap. Use when user says "farm on pancakeswap", "stake CAKE", "unstake CAKE", "stake LP", "unstake LP", "yield farming", "syrup pool", "pancakeswap farm", "earn CAKE", "farm APR", "harvest rewards", "deposit LP", "withdraw LP", or describes wanting to stake, unstake, or earn yield on PancakeSwap.
Plan yield farming, CAKE staking, and reward harvesting on PancakeSwap by discovering active farms, comparing APR/APY, and generating deep links.
This skill does not execute transactions — it plans farming strategies. Output is a deep link URL to the PancakeSwap farming or staking page.
::: danger MANDATORY SECURITY RULES
^0x[0-9a-fA-F]{40}$. Pool IDs → ^0x[0-9a-fA-F]{64}$. Numeric IDs → ^[0-9]+$. Reject shell metacharacters.open/xdg-open with https://pancakeswap.finance/ URLs.--private-key CLI flags. Use --account myaccount (Foundry keystore).
:::Approved curl endpoints: explorer.pancakeswap.com, infinity.pancakeswap.com, configs.pancakeswap.com, tokens.pancakeswap.finance, api.dexscreener.com, api.coingecko.com, api.llama.fi, and public RPCs in the Supported Chains table.
| User Says... | Go To Section |
|---|---|
| "best farms" / "highest APR" | Farm Discovery |
| "stake LP" / "deposit LP" | Stake LP Tokens |
| "unstake LP" / "withdraw LP" | Unstake LP Tokens |
| "stake CAKE" / "syrup pool" | Stake CAKE |
| "harvest" / "claim rewards" | Harvest Rewards |
| Goal | Best Option |
|---|---|
| Passive CAKE yield, no IL | Syrup Pool |
| Highest APR, active management | V3 Farm (tight range) |
| Set-and-forget | V2 Farm (full range) |
| Simplest UX (1 step) | Infinity Farm |
| Earn partner tokens | Syrup Pool |
| Stablecoin yield | USDT-USDC StableSwap Farm |
| Type | How It Works | Steps | Reward |
|---|---|---|---|
| V2 Farms | Stake LP tokens in MasterChef v2 | 2: add liquidity → stake | CAKE |
| V3 Farms | Stake V3 NFT in MasterChef v3 | 2: add liquidity → transfer NFT | CAKE |
| Infinity Farms | Add liquidity = auto-farmed | 1 step only | CAKE (every 8h) |
| Syrup Pools | Stake CAKE to earn partner tokens | 1: stake CAKE | Various |
| Contract | Address |
|---|---|
| MasterChef v2 | 0xa5f8C5Dbd5F286960b9d90548680aE5ebFf07652 |
| MasterChef v3 | 0x556B9306565093C855AEA9AE92A594704c2Cd59e |
| CampaignManager (Infinity) | 0x26Bde0AC5b77b65A402778448eCac2aCaa9c9115 |
| Distributor (Infinity) | 0xEA8620aAb2F07a0ae710442590D649ADE8440877 |
| CAKE Token | 0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82 |
| PositionManager v3 | 0x46A15B0b27311cedF172AB29E4f4766fbE7F4364 |
::: danger MANDATORY — Follow exact two-step process. Do NOT improvise. :::
Step 1 — Create the script (run this FIRST):
PCS_FARMS_SCRIPT=$(mktemp /tmp/pcs_farms_XXXXXX)
cat > "$PCS_FARMS_SCRIPT" << 'PYEOF'
import json, sys, os, time, re