{
  "schemaVersion": "1.0",
  "item": {
    "slug": "seek-protocol-fees",
    "name": "Uniswap Seek Protocol Fees",
    "source": "tencent",
    "type": "skill",
    "category": "数据分析",
    "sourceUrl": "https://clawhub.ai/wpank/seek-protocol-fees",
    "canonicalUrl": "https://clawhub.ai/wpank/seek-protocol-fees",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/seek-protocol-fees",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=seek-protocol-fees",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/seek-protocol-fees"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/seek-protocol-fees",
    "agentPageUrl": "https://openagent3.xyz/skills/seek-protocol-fees/agent",
    "manifestUrl": "https://openagent3.xyz/skills/seek-protocol-fees/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/seek-protocol-fees/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Overview",
        "body": "This is the autonomous burn-and-claim pipeline for Uniswap's protocol fee system. The TokenJar (0xf38521f130fcCF29dB1961597bc5d2B60F995f85) accumulates fees from V2, V3, V4, UniswapX, and Unichain. The Firepit (0x0D5Cd355e2aBEB8fb1552F56c965B867346d6721) allows anyone to burn 4,000 UNI to release those accumulated assets. When the jar's value exceeds the burn cost plus gas, a profit opportunity exists.\n\nThis skill runs the full pipeline in one command: check balances, price assets, calculate profitability, simulate the burn, and -- only if the user explicitly opts in -- execute it.\n\nWhy this is 10x better than calling tools individually:\n\n9-step workflow compressed to one command: Without this skill, a user must manually check TokenJar balances, price each token in USD, check the Firepit threshold, calculate UNI burn cost at current prices, estimate gas, determine net profitability, select optimal assets, simulate the burn, and finally execute. This skill does all of it with compound context flowing between each step.\nSafety-gated execution: Default mode is preview-only (auto-execute: false). Even when execution is enabled, the pipeline simulates first, validates through safety-guardian, and checks nonce freshness for race conditions -- protections that are easy to skip when calling tools manually.\nProfitability dashboard: The output is a structured profitability report, not raw JSON from 6 different tools. You see gross value, burn cost, gas cost, net profit, ROI, and per-asset breakdown in one view.\nPost-burn conversion: Optionally converts received tokens to stablecoins in the same pipeline, calculating the true net profit after conversion slippage."
      },
      {
        "title": "When to Use",
        "body": "Activate when the user says anything like:\n\n\"Is the TokenJar profitable to burn?\"\n\"Check protocol fee profitability\"\n\"Execute a Firepit burn\"\n\"Burn UNI and claim protocol fees\"\n\"How much is in the TokenJar? Is it worth burning?\"\n\"Claim fees from the TokenJar\"\n\"Seek protocol fees\"\n\"Run the burn-and-claim pipeline\"\n\nDo NOT use when the user just wants to monitor accumulation over time (use monitor-tokenjar instead) or wants historical burn analysis (use analyze-burn-economics instead)."
      },
      {
        "title": "Parameters",
        "body": "ParameterRequiredDefaultHow to ExtractchainNoethereumAlways Ethereum mainnet for TokenJar/Firepitauto-executeNofalse\"execute the burn\", \"claim fees\" implies true; \"check\", \"preview\" implies falsepost-burn-swapNofalse\"convert to stables\", \"swap to USDC\" implies truerecipientNoconnected walletExplicit address if provided, otherwise agent's wallet\n\nIf the user's intent is ambiguous between preview and execution, default to preview and present the profitability report. Let the user explicitly confirm before any UNI is burned."
      },
      {
        "title": "Workflow",
        "body": "SEEK-PROTOCOL-FEES PIPELINE\n  ┌─────────────────────────────────────────────────────────────────────┐\n  │                                                                     │\n  │  Step 1: PRE-FLIGHT (direct MCP calls)                              │\n  │  ├── get_tokenjar_balances — what's in the jar?                     │\n  │  ├── get_firepit_state — threshold, nonce, readiness                │\n  │  ├── get_agent_balance — does agent have enough UNI?                │\n  │  └── Gate: if jar empty or no UNI → STOP immediately               │\n  │          │                                                          │\n  │          ▼ (all pre-flight data feeds into Step 2)                  │\n  │                                                                     │\n  │  Step 2: PROFITABILITY ANALYSIS (protocol-fee-seeker)               │\n  │  ├── Price all TokenJar assets in USD                               │\n  │  ├── Calculate: burn cost + gas cost vs. jar value                  │\n  │  ├── Select optimal assets to claim                                 │\n  │  ├── Determine net profit and ROI                                   │\n  │  └── Output: Profitability Report                                   │\n  │          │                                                          │\n  │          ▼ PROFITABILITY GATE                                       │\n  │  ┌───────────────────────────────────────────────────┐              │\n  │  │  PROFITABLE     → Present report, proceed         │              │\n  │  │  NOT PROFITABLE → Present report, STOP            │              │\n  │  │  MARGINAL       → Present report, warn user       │              │\n  │  └───────────────────────────────────────────────────┘              │\n  │          │ (only if profitable)                                     │\n  │          ▼                                                          │\n  │                                                                     │\n  │  Step 3: USER CONFIRMATION                                          │\n  │  ├── If auto-execute: false → present report, ask user              │\n  │  ├── If auto-execute: true → present report, proceed                │\n  │  └── User must explicitly confirm before UNI is burned              │\n  │          │                                                          │\n  │          ▼                                                          │\n  │                                                                     │\n  │  Step 4: SIMULATE + EXECUTE (protocol-fee-seeker)                   │\n  │  ├── execute_burn(simulate=true) — dry run                          │\n  │  ├── safety-guardian validates transaction                          │\n  │  ├── Nonce freshness check (race condition protection)              │\n  │  ├── execute_burn(simulate=false) — broadcast                       │\n  │  └── Wait for confirmation                                          │\n  │          │                                                          │\n  │          ▼                                                          │\n  │                                                                     │\n  │  Step 5: POST-BURN REPORT                                           │\n  │  ├── Show received tokens with USD values                           │\n  │  ├── If post-burn-swap: convert to stablecoins                      │\n  │  ├── Calculate final net profit after all costs                     │\n  │  └── Recommend next burn timing                                     │\n  │                                                                     │\n  └─────────────────────────────────────────────────────────────────────┘"
      },
      {
        "title": "Step 1: Pre-Flight (direct MCP calls)",
        "body": "Make three parallel MCP calls to quickly assess feasibility before invoking the agent:\n\nCall mcp__uniswap__get_tokenjar_balances to get current jar contents.\nCall mcp__uniswap__get_firepit_state to get threshold, nonce, and wallet readiness.\nCall mcp__uniswap__get_agent_balance to check the agent's UNI balance.\n\nGate checks (stop immediately if any fail):\n\nCheckConditionAction if FailedTokenJar emptyAll balances are zero\"TokenJar is empty. No fees to claim.\"Agent lacks UNIUNI balance < threshold (4,000 UNI)\"Insufficient UNI: have {X}, need {threshold}. Acquire UNI first.\"Firepit not readyContract state indicates unavailability\"Firepit contract is not ready: {reason}.\"\n\nPresent to user after pre-flight:\n\nStep 1/5: Pre-Flight Complete\n\n  TokenJar: 6 tokens detected (WETH, USDC, USDT, DAI, WBTC, UNI)\n  Firepit: Threshold 4,000 UNI | Nonce: 42\n  Agent UNI Balance: 5,200 UNI (sufficient)\n\n  Analyzing profitability..."
      },
      {
        "title": "Step 2: Profitability Analysis (protocol-fee-seeker)",
        "body": "Delegate to Task(subagent_type:protocol-fee-seeker) with all pre-flight data:\n\nAnalyze the profitability of a Firepit burn-and-claim.\n\nPre-flight data:\n- TokenJar balances: {from Step 1 — full balance data}\n- Firepit state: threshold={threshold} UNI, nonce={nonce}\n- Agent UNI balance: {balance}\n\nTasks:\n1. Price every TokenJar asset in USD using get_token_price.\n2. Calculate UNI burn cost: {threshold} UNI * current UNI price.\n3. Estimate gas cost for the burn transaction using get_gas_price.\n4. Calculate net profit: total_jar_value - (UNI_cost + gas_cost).\n5. Select optimal assets to claim (highest value, exclude LP tokens, up to maxReleaseLength).\n6. Provide a clear PROFITABLE / NOT_PROFITABLE / MARGINAL verdict.\n\nReturn a structured profitability report with per-asset breakdown.\n\nPresent to user after completion:\n\nStep 2/5: Profitability Analysis Complete\n\n  TokenJar Value:  $52,000\n  ┌─────────────────────────────────────────────┐\n  │  WETH     7.20    $18,000   (34.6%)         │\n  │  USDC     15,000  $15,000   (28.8%)         │\n  │  USDT     8,500   $8,500    (16.3%)         │\n  │  WBTC     0.08    $6,400    (12.3%)         │\n  │  DAI      4,100   $4,100    (7.9%)          │\n  └─────────────────────────────────────────────┘\n\n  Burn Cost:\n    UNI burn:  4,000 UNI ($28,000)\n    Gas:       ~$45\n    Total:     $28,045\n\n  Net Profit:  $23,955\n  ROI:         85.4%\n  Verdict:     PROFITABLE\n\nIf NOT_PROFITABLE:\n\nStep 2/5: Profitability Analysis Complete\n\n  TokenJar Value:  $18,000\n  Burn Cost:       $28,045 (4,000 UNI + gas)\n  Net Profit:      -$10,045\n  Verdict:         NOT PROFITABLE\n\n  The TokenJar value ($18,000) does not cover the burn cost ($28,045).\n  Estimated time to profitability: ~1.4 days (at $7,400/day accumulation rate).\n\n  Pipeline stopped. No burn executed."
      },
      {
        "title": "Step 3: User Confirmation",
        "body": "If the burn is profitable and auto-execute is false (default), present the full profitability report and ask for explicit confirmation:\n\nBurn Confirmation Required\n\n  TokenJar Value:  $52,000 (5 assets)\n  Burn Cost:       $28,045 (4,000 UNI + $45 gas)\n  Net Profit:      $23,955 (85.4% ROI)\n\n  Assets to Claim: WETH, USDC, USDT, WBTC, DAI\n  Post-Burn Swap:  {Yes — convert to USDC | No — keep as received}\n\n  This will permanently burn 4,000 UNI. Proceed? (yes/no)\n\nOnly proceed to Step 4 if the user explicitly confirms. If auto-execute is true, still present the report but proceed without waiting."
      },
      {
        "title": "Step 4: Simulate + Execute (protocol-fee-seeker)",
        "body": "Delegate to Task(subagent_type:protocol-fee-seeker) for the execution pipeline:\n\nExecute the Firepit burn-and-claim.\n\nProfitability analysis (from Step 2):\n{Full profitability report}\n\nSelected assets: {asset list from Step 2}\nNonce at analysis time: {nonce from Step 1}\n\nExecute the following sequence:\n1. Simulate: execute_burn(simulate=true) with the selected assets.\n2. If simulation succeeds, delegate to safety-guardian for transaction validation.\n3. Nonce freshness check: re-read Firepit state. If nonce has changed, ABORT (race condition).\n4. Execute: execute_burn(simulate=false) to broadcast.\n5. Wait for transaction confirmation.\n\nIf any step fails, report the failure point and do not proceed.\n\nPresent to user during execution:\n\nStep 4/5: Executing Burn\n\n  Simulation:     SUCCESS\n  Safety Check:   APPROVED by safety-guardian\n  Nonce Check:    Fresh (42 — unchanged)\n  Broadcasting... confirmed in block 19,500,000\n\n  Tx: https://etherscan.io/tx/0xabcd...1234\n\nIf race condition detected:\n\nStep 4/5: Execution ABORTED — Race Condition\n\n  Nonce changed: was 42, now 43.\n  Another searcher burned before us. TokenJar balances have changed.\n\n  Returning to profitability analysis with fresh data..."
      },
      {
        "title": "Step 5: Post-Burn Report",
        "body": "Present final result:\n\nStep 5/5: Burn Complete\n\n  Burned:    4,000 UNI ($28,000)\n  Gas:       $45\n  Received:\n    WETH     7.20    $18,000\n    USDC     15,000  $15,000\n    USDT     8,500   $8,500\n    WBTC     0.08    $6,400\n    DAI      4,100   $4,100\n\n  Gross Value:  $52,000\n  Total Cost:   $28,045\n  Net Profit:   $23,955 (85.4% ROI)\n  Tx:           https://etherscan.io/tx/0xabcd...1234\n\n  ──────────────────────────────────────\n  Next Burn Estimate\n  ──────────────────────────────────────\n  Accumulation Rate: ~$7,400/day\n  Est. Next Profitable Burn: ~3.8 days\n\nIf post-burn-swap: true, append conversion details:\n\nPost-Burn Conversions:\n    WETH  → 17,950 USDC  (0.28% slippage)\n    WBTC  → 6,380 USDC   (0.31% slippage)\n    USDT  → 8,495 USDC   (0.06% slippage)\n    DAI   → 4,098 USDC   (0.05% slippage)\n\n  Final USDC Balance: 51,923 USDC\n  Conversion Costs:   $77\n  True Net Profit:    $23,878 (after all costs)"
      },
      {
        "title": "Preview Mode (default)",
        "body": "Protocol Fee Analysis\n\n  TokenJar Value:  ${total_value} ({num_assets} assets)\n  ┌──────────────────────────────────────┐\n  │  {token}  {balance}  ${value}  ({%}) │\n  │  ...                                 │\n  └──────────────────────────────────────┘\n\n  Burn Cost:   ${uni_cost} ({threshold} UNI) + ${gas} gas = ${total_cost}\n  Net Profit:  ${net_profit}\n  ROI:         {roi}%\n  Verdict:     {PROFITABLE | NOT_PROFITABLE | MARGINAL}\n\n  {if profitable: \"Ready to execute. Say 'burn it' to proceed.\"}\n  {if not profitable: \"Est. time to profitability: {days} days.\"}"
      },
      {
        "title": "Execution Mode",
        "body": "Protocol Fee Burn Complete\n\n  Burned:     {threshold} UNI (${uni_cost})\n  Gas:        ${gas_cost}\n  Received:   {num_assets} assets worth ${gross_value}\n  Net Profit: ${net_profit} ({roi}% ROI)\n  Tx:         {explorer_link}\n\n  Pipeline: Pre-flight -> Analysis -> Confirm -> Simulate -> Execute (all passed)"
      },
      {
        "title": "Important Notes",
        "body": "Default is preview-only. The skill never burns UNI unless the user explicitly enables execution. This is a destructive, irreversible action -- 4,000 UNI is sent to the dead address.\nEthereum mainnet only. The TokenJar and Firepit contracts are deployed on Ethereum mainnet. The chain parameter exists for forward compatibility but currently only ethereum is valid.\nRace conditions are real. Other searchers monitor the same TokenJar. The nonce freshness check before execution is critical. If another burn happens between analysis and execution, the pipeline aborts safely.\nUNI is permanently burned. Unlike a swap where you can swap back, the UNI burn is irreversible. The skill makes this very clear in the confirmation step.\nGas costs matter on mainnet. Ethereum gas can significantly impact profitability. The agent factors current gas prices into the analysis and may recommend waiting for lower gas if the margin is thin.\nLP tokens are excluded by default. Some TokenJar assets may be LP tokens that require additional redemption. The agent excludes these unless specifically instructed to handle them."
      },
      {
        "title": "Error Handling",
        "body": "ErrorUser-Facing MessageSuggested ActionTokenJar empty\"TokenJar is empty. No fees to claim.\"Wait for fees to accumulateInsufficient UNI\"Insufficient UNI: have {X}, need {threshold}.\"Acquire UNI or wait for price dropNot profitable\"Burn is not profitable. Jar value ${X} < burn cost ${Y}.\"Wait for more accumulationSimulation failed\"Burn simulation failed: {reason}.\"Check Firepit state, try againSafety check failed\"Safety validation rejected the burn: {reason}.\"Review safety configurationRace condition\"Another searcher burned first. Nonce changed from {X} to {Y}.\"Re-run to analyze with fresh dataTransaction reverted\"Burn transaction reverted: {reason}.\"Check gas, nonce, and Firepit stateWallet not configured\"No wallet configured. Cannot execute burns.\"Set up wallet with setup-agent-walletPost-burn swap failed\"Burn succeeded but token conversion failed for {token}: {reason}.\"Manually swap via execute-swapGas price spike\"Gas prices elevated (${gas}). Burn is marginally profitable.\"Wait for lower gas or accept lower profit"
      }
    ],
    "body": "Seek Protocol Fees\nOverview\n\nThis is the autonomous burn-and-claim pipeline for Uniswap's protocol fee system. The TokenJar (0xf38521f130fcCF29dB1961597bc5d2B60F995f85) accumulates fees from V2, V3, V4, UniswapX, and Unichain. The Firepit (0x0D5Cd355e2aBEB8fb1552F56c965B867346d6721) allows anyone to burn 4,000 UNI to release those accumulated assets. When the jar's value exceeds the burn cost plus gas, a profit opportunity exists.\n\nThis skill runs the full pipeline in one command: check balances, price assets, calculate profitability, simulate the burn, and -- only if the user explicitly opts in -- execute it.\n\nWhy this is 10x better than calling tools individually:\n\n9-step workflow compressed to one command: Without this skill, a user must manually check TokenJar balances, price each token in USD, check the Firepit threshold, calculate UNI burn cost at current prices, estimate gas, determine net profitability, select optimal assets, simulate the burn, and finally execute. This skill does all of it with compound context flowing between each step.\nSafety-gated execution: Default mode is preview-only (auto-execute: false). Even when execution is enabled, the pipeline simulates first, validates through safety-guardian, and checks nonce freshness for race conditions -- protections that are easy to skip when calling tools manually.\nProfitability dashboard: The output is a structured profitability report, not raw JSON from 6 different tools. You see gross value, burn cost, gas cost, net profit, ROI, and per-asset breakdown in one view.\nPost-burn conversion: Optionally converts received tokens to stablecoins in the same pipeline, calculating the true net profit after conversion slippage.\nWhen to Use\n\nActivate when the user says anything like:\n\n\"Is the TokenJar profitable to burn?\"\n\"Check protocol fee profitability\"\n\"Execute a Firepit burn\"\n\"Burn UNI and claim protocol fees\"\n\"How much is in the TokenJar? Is it worth burning?\"\n\"Claim fees from the TokenJar\"\n\"Seek protocol fees\"\n\"Run the burn-and-claim pipeline\"\n\nDo NOT use when the user just wants to monitor accumulation over time (use monitor-tokenjar instead) or wants historical burn analysis (use analyze-burn-economics instead).\n\nParameters\nParameter\tRequired\tDefault\tHow to Extract\nchain\tNo\tethereum\tAlways Ethereum mainnet for TokenJar/Firepit\nauto-execute\tNo\tfalse\t\"execute the burn\", \"claim fees\" implies true; \"check\", \"preview\" implies false\npost-burn-swap\tNo\tfalse\t\"convert to stables\", \"swap to USDC\" implies true\nrecipient\tNo\tconnected wallet\tExplicit address if provided, otherwise agent's wallet\n\nIf the user's intent is ambiguous between preview and execution, default to preview and present the profitability report. Let the user explicitly confirm before any UNI is burned.\n\nWorkflow\n                        SEEK-PROTOCOL-FEES PIPELINE\n  ┌─────────────────────────────────────────────────────────────────────┐\n  │                                                                     │\n  │  Step 1: PRE-FLIGHT (direct MCP calls)                              │\n  │  ├── get_tokenjar_balances — what's in the jar?                     │\n  │  ├── get_firepit_state — threshold, nonce, readiness                │\n  │  ├── get_agent_balance — does agent have enough UNI?                │\n  │  └── Gate: if jar empty or no UNI → STOP immediately               │\n  │          │                                                          │\n  │          ▼ (all pre-flight data feeds into Step 2)                  │\n  │                                                                     │\n  │  Step 2: PROFITABILITY ANALYSIS (protocol-fee-seeker)               │\n  │  ├── Price all TokenJar assets in USD                               │\n  │  ├── Calculate: burn cost + gas cost vs. jar value                  │\n  │  ├── Select optimal assets to claim                                 │\n  │  ├── Determine net profit and ROI                                   │\n  │  └── Output: Profitability Report                                   │\n  │          │                                                          │\n  │          ▼ PROFITABILITY GATE                                       │\n  │  ┌───────────────────────────────────────────────────┐              │\n  │  │  PROFITABLE     → Present report, proceed         │              │\n  │  │  NOT PROFITABLE → Present report, STOP            │              │\n  │  │  MARGINAL       → Present report, warn user       │              │\n  │  └───────────────────────────────────────────────────┘              │\n  │          │ (only if profitable)                                     │\n  │          ▼                                                          │\n  │                                                                     │\n  │  Step 3: USER CONFIRMATION                                          │\n  │  ├── If auto-execute: false → present report, ask user              │\n  │  ├── If auto-execute: true → present report, proceed                │\n  │  └── User must explicitly confirm before UNI is burned              │\n  │          │                                                          │\n  │          ▼                                                          │\n  │                                                                     │\n  │  Step 4: SIMULATE + EXECUTE (protocol-fee-seeker)                   │\n  │  ├── execute_burn(simulate=true) — dry run                          │\n  │  ├── safety-guardian validates transaction                          │\n  │  ├── Nonce freshness check (race condition protection)              │\n  │  ├── execute_burn(simulate=false) — broadcast                       │\n  │  └── Wait for confirmation                                          │\n  │          │                                                          │\n  │          ▼                                                          │\n  │                                                                     │\n  │  Step 5: POST-BURN REPORT                                           │\n  │  ├── Show received tokens with USD values                           │\n  │  ├── If post-burn-swap: convert to stablecoins                      │\n  │  ├── Calculate final net profit after all costs                     │\n  │  └── Recommend next burn timing                                     │\n  │                                                                     │\n  └─────────────────────────────────────────────────────────────────────┘\n\nStep 1: Pre-Flight (direct MCP calls)\n\nMake three parallel MCP calls to quickly assess feasibility before invoking the agent:\n\nCall mcp__uniswap__get_tokenjar_balances to get current jar contents.\nCall mcp__uniswap__get_firepit_state to get threshold, nonce, and wallet readiness.\nCall mcp__uniswap__get_agent_balance to check the agent's UNI balance.\n\nGate checks (stop immediately if any fail):\n\nCheck\tCondition\tAction if Failed\nTokenJar empty\tAll balances are zero\t\"TokenJar is empty. No fees to claim.\"\nAgent lacks UNI\tUNI balance < threshold (4,000 UNI)\t\"Insufficient UNI: have {X}, need {threshold}. Acquire UNI first.\"\nFirepit not ready\tContract state indicates unavailability\t\"Firepit contract is not ready: {reason}.\"\n\nPresent to user after pre-flight:\n\nStep 1/5: Pre-Flight Complete\n\n  TokenJar: 6 tokens detected (WETH, USDC, USDT, DAI, WBTC, UNI)\n  Firepit: Threshold 4,000 UNI | Nonce: 42\n  Agent UNI Balance: 5,200 UNI (sufficient)\n\n  Analyzing profitability...\n\nStep 2: Profitability Analysis (protocol-fee-seeker)\n\nDelegate to Task(subagent_type:protocol-fee-seeker) with all pre-flight data:\n\nAnalyze the profitability of a Firepit burn-and-claim.\n\nPre-flight data:\n- TokenJar balances: {from Step 1 — full balance data}\n- Firepit state: threshold={threshold} UNI, nonce={nonce}\n- Agent UNI balance: {balance}\n\nTasks:\n1. Price every TokenJar asset in USD using get_token_price.\n2. Calculate UNI burn cost: {threshold} UNI * current UNI price.\n3. Estimate gas cost for the burn transaction using get_gas_price.\n4. Calculate net profit: total_jar_value - (UNI_cost + gas_cost).\n5. Select optimal assets to claim (highest value, exclude LP tokens, up to maxReleaseLength).\n6. Provide a clear PROFITABLE / NOT_PROFITABLE / MARGINAL verdict.\n\nReturn a structured profitability report with per-asset breakdown.\n\n\nPresent to user after completion:\n\nStep 2/5: Profitability Analysis Complete\n\n  TokenJar Value:  $52,000\n  ┌─────────────────────────────────────────────┐\n  │  WETH     7.20    $18,000   (34.6%)         │\n  │  USDC     15,000  $15,000   (28.8%)         │\n  │  USDT     8,500   $8,500    (16.3%)         │\n  │  WBTC     0.08    $6,400    (12.3%)         │\n  │  DAI      4,100   $4,100    (7.9%)          │\n  └─────────────────────────────────────────────┘\n\n  Burn Cost:\n    UNI burn:  4,000 UNI ($28,000)\n    Gas:       ~$45\n    Total:     $28,045\n\n  Net Profit:  $23,955\n  ROI:         85.4%\n  Verdict:     PROFITABLE\n\n\nIf NOT_PROFITABLE:\n\nStep 2/5: Profitability Analysis Complete\n\n  TokenJar Value:  $18,000\n  Burn Cost:       $28,045 (4,000 UNI + gas)\n  Net Profit:      -$10,045\n  Verdict:         NOT PROFITABLE\n\n  The TokenJar value ($18,000) does not cover the burn cost ($28,045).\n  Estimated time to profitability: ~1.4 days (at $7,400/day accumulation rate).\n\n  Pipeline stopped. No burn executed.\n\nStep 3: User Confirmation\n\nIf the burn is profitable and auto-execute is false (default), present the full profitability report and ask for explicit confirmation:\n\nBurn Confirmation Required\n\n  TokenJar Value:  $52,000 (5 assets)\n  Burn Cost:       $28,045 (4,000 UNI + $45 gas)\n  Net Profit:      $23,955 (85.4% ROI)\n\n  Assets to Claim: WETH, USDC, USDT, WBTC, DAI\n  Post-Burn Swap:  {Yes — convert to USDC | No — keep as received}\n\n  This will permanently burn 4,000 UNI. Proceed? (yes/no)\n\n\nOnly proceed to Step 4 if the user explicitly confirms. If auto-execute is true, still present the report but proceed without waiting.\n\nStep 4: Simulate + Execute (protocol-fee-seeker)\n\nDelegate to Task(subagent_type:protocol-fee-seeker) for the execution pipeline:\n\nExecute the Firepit burn-and-claim.\n\nProfitability analysis (from Step 2):\n{Full profitability report}\n\nSelected assets: {asset list from Step 2}\nNonce at analysis time: {nonce from Step 1}\n\nExecute the following sequence:\n1. Simulate: execute_burn(simulate=true) with the selected assets.\n2. If simulation succeeds, delegate to safety-guardian for transaction validation.\n3. Nonce freshness check: re-read Firepit state. If nonce has changed, ABORT (race condition).\n4. Execute: execute_burn(simulate=false) to broadcast.\n5. Wait for transaction confirmation.\n\nIf any step fails, report the failure point and do not proceed.\n\n\nPresent to user during execution:\n\nStep 4/5: Executing Burn\n\n  Simulation:     SUCCESS\n  Safety Check:   APPROVED by safety-guardian\n  Nonce Check:    Fresh (42 — unchanged)\n  Broadcasting... confirmed in block 19,500,000\n\n  Tx: https://etherscan.io/tx/0xabcd...1234\n\n\nIf race condition detected:\n\nStep 4/5: Execution ABORTED — Race Condition\n\n  Nonce changed: was 42, now 43.\n  Another searcher burned before us. TokenJar balances have changed.\n\n  Returning to profitability analysis with fresh data...\n\nStep 5: Post-Burn Report\n\nPresent final result:\n\nStep 5/5: Burn Complete\n\n  Burned:    4,000 UNI ($28,000)\n  Gas:       $45\n  Received:\n    WETH     7.20    $18,000\n    USDC     15,000  $15,000\n    USDT     8,500   $8,500\n    WBTC     0.08    $6,400\n    DAI      4,100   $4,100\n\n  Gross Value:  $52,000\n  Total Cost:   $28,045\n  Net Profit:   $23,955 (85.4% ROI)\n  Tx:           https://etherscan.io/tx/0xabcd...1234\n\n  ──────────────────────────────────────\n  Next Burn Estimate\n  ──────────────────────────────────────\n  Accumulation Rate: ~$7,400/day\n  Est. Next Profitable Burn: ~3.8 days\n\n\nIf post-burn-swap: true, append conversion details:\n\n  Post-Burn Conversions:\n    WETH  → 17,950 USDC  (0.28% slippage)\n    WBTC  → 6,380 USDC   (0.31% slippage)\n    USDT  → 8,495 USDC   (0.06% slippage)\n    DAI   → 4,098 USDC   (0.05% slippage)\n\n  Final USDC Balance: 51,923 USDC\n  Conversion Costs:   $77\n  True Net Profit:    $23,878 (after all costs)\n\nOutput Format\nPreview Mode (default)\nProtocol Fee Analysis\n\n  TokenJar Value:  ${total_value} ({num_assets} assets)\n  ┌──────────────────────────────────────┐\n  │  {token}  {balance}  ${value}  ({%}) │\n  │  ...                                 │\n  └──────────────────────────────────────┘\n\n  Burn Cost:   ${uni_cost} ({threshold} UNI) + ${gas} gas = ${total_cost}\n  Net Profit:  ${net_profit}\n  ROI:         {roi}%\n  Verdict:     {PROFITABLE | NOT_PROFITABLE | MARGINAL}\n\n  {if profitable: \"Ready to execute. Say 'burn it' to proceed.\"}\n  {if not profitable: \"Est. time to profitability: {days} days.\"}\n\nExecution Mode\nProtocol Fee Burn Complete\n\n  Burned:     {threshold} UNI (${uni_cost})\n  Gas:        ${gas_cost}\n  Received:   {num_assets} assets worth ${gross_value}\n  Net Profit: ${net_profit} ({roi}% ROI)\n  Tx:         {explorer_link}\n\n  Pipeline: Pre-flight -> Analysis -> Confirm -> Simulate -> Execute (all passed)\n\nImportant Notes\nDefault is preview-only. The skill never burns UNI unless the user explicitly enables execution. This is a destructive, irreversible action -- 4,000 UNI is sent to the dead address.\nEthereum mainnet only. The TokenJar and Firepit contracts are deployed on Ethereum mainnet. The chain parameter exists for forward compatibility but currently only ethereum is valid.\nRace conditions are real. Other searchers monitor the same TokenJar. The nonce freshness check before execution is critical. If another burn happens between analysis and execution, the pipeline aborts safely.\nUNI is permanently burned. Unlike a swap where you can swap back, the UNI burn is irreversible. The skill makes this very clear in the confirmation step.\nGas costs matter on mainnet. Ethereum gas can significantly impact profitability. The agent factors current gas prices into the analysis and may recommend waiting for lower gas if the margin is thin.\nLP tokens are excluded by default. Some TokenJar assets may be LP tokens that require additional redemption. The agent excludes these unless specifically instructed to handle them.\nError Handling\nError\tUser-Facing Message\tSuggested Action\nTokenJar empty\t\"TokenJar is empty. No fees to claim.\"\tWait for fees to accumulate\nInsufficient UNI\t\"Insufficient UNI: have {X}, need {threshold}.\"\tAcquire UNI or wait for price drop\nNot profitable\t\"Burn is not profitable. Jar value ${X} < burn cost ${Y}.\"\tWait for more accumulation\nSimulation failed\t\"Burn simulation failed: {reason}.\"\tCheck Firepit state, try again\nSafety check failed\t\"Safety validation rejected the burn: {reason}.\"\tReview safety configuration\nRace condition\t\"Another searcher burned first. Nonce changed from {X} to {Y}.\"\tRe-run to analyze with fresh data\nTransaction reverted\t\"Burn transaction reverted: {reason}.\"\tCheck gas, nonce, and Firepit state\nWallet not configured\t\"No wallet configured. Cannot execute burns.\"\tSet up wallet with setup-agent-wallet\nPost-burn swap failed\t\"Burn succeeded but token conversion failed for {token}: {reason}.\"\tManually swap via execute-swap\nGas price spike\t\"Gas prices elevated (${gas}). Burn is marginally profitable.\"\tWait for lower gas or accept lower profit"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/wpank/seek-protocol-fees",
    "publisherUrl": "https://clawhub.ai/wpank/seek-protocol-fees",
    "owner": "wpank",
    "version": "0.1.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/seek-protocol-fees",
    "downloadUrl": "https://openagent3.xyz/downloads/seek-protocol-fees",
    "agentUrl": "https://openagent3.xyz/skills/seek-protocol-fees/agent",
    "manifestUrl": "https://openagent3.xyz/skills/seek-protocol-fees/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/seek-protocol-fees/agent.md"
  }
}