{
  "schemaVersion": "1.0",
  "item": {
    "slug": "kyberswap-arbitrage",
    "name": "KyberSwap Arbitrage",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/HarleysCodes/kyberswap-arbitrage",
    "canonicalUrl": "https://clawhub.ai/HarleysCodes/kyberswap-arbitrage",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/kyberswap-arbitrage",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=kyberswap-arbitrage",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "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. 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. 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/kyberswap-arbitrage"
    },
    "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/kyberswap-arbitrage",
    "agentPageUrl": "https://openagent3.xyz/skills/kyberswap-arbitrage/agent",
    "manifestUrl": "https://openagent3.xyz/skills/kyberswap-arbitrage/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/kyberswap-arbitrage/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. 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. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Overview",
        "body": "Triangular arbitrage: profit from price differences between 3 tokens (e.g., USDC → ETH → USDT → USDC)"
      },
      {
        "title": "Key Contracts (Base Mainnet)",
        "body": "Router: 0x6131B5fae19EA4f9D964eAc0408E4408b2a37dD8\nFactory: 0x5F1dddbf348aC2BEbe18559BF0eDE9D3fE6ce35f"
      },
      {
        "title": "1. Get Quotes",
        "body": "const router = new ethers.Contract(routerAddr, routerABI, provider);\n\n// Get amounts out for exact input\nconst [amountOut] = await router.getAmountsOut(\n  amountIn,      // Wei amount\n  [tokenA, tokenB, tokenC] // Path\n);"
      },
      {
        "title": "2. Calculate Profit",
        "body": "profit = finalAmount - initialAmount - gasCosts"
      },
      {
        "title": "3. Execute Swap",
        "body": "const tx = await router.swapExactTokensForTokens(\n  amountIn,\n  amountOutMin,\n  path,\n  recipient,\n  deadline\n);"
      },
      {
        "title": "Token Addresses (Base)",
        "body": "USDC: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\nUSDT: 0xfde4C96c85940E8F44A6D8d5e4fD4f4C4f9D8E8\nETH: 0x4200000000000000000000000000000000000006\nWETH: 0x4200000000000000000000000000000000000006"
      },
      {
        "title": "Arbitrage Pairs (Base)",
        "body": "Common triangular paths:\n\nUSDC → ETH → USDC\nUSDC → WETH → USDT → USDC\nUSDT → ETH → USDC → USDT"
      },
      {
        "title": "Safety Checks",
        "body": "Slippage: Set amountOutMin = output * (1 - slippage%)\nGas: Estimate gas, ensure profit > gas\nMax Price Impact: Check pool reserves before large trades\nRenounced Contracts: Only trade tokens with renounced ownership"
      },
      {
        "title": "Risk Profile",
        "body": "Aggressive but audit-first\nSkip all non-renounced contracts\nCheck for honeypot tokens"
      }
    ],
    "body": "KyberSwap Arbitrage\nOverview\n\nTriangular arbitrage: profit from price differences between 3 tokens (e.g., USDC → ETH → USDT → USDC)\n\nKey Contracts (Base Mainnet)\nRouter: 0x6131B5fae19EA4f9D964eAc0408E4408b2a37dD8\nFactory: 0x5F1dddbf348aC2BEbe18559BF0eDE9D3fE6ce35f\nCore Logic\n1. Get Quotes\nconst router = new ethers.Contract(routerAddr, routerABI, provider);\n\n// Get amounts out for exact input\nconst [amountOut] = await router.getAmountsOut(\n  amountIn,      // Wei amount\n  [tokenA, tokenB, tokenC] // Path\n);\n\n2. Calculate Profit\nprofit = finalAmount - initialAmount - gasCosts\n\n3. Execute Swap\nconst tx = await router.swapExactTokensForTokens(\n  amountIn,\n  amountOutMin,\n  path,\n  recipient,\n  deadline\n);\n\nToken Addresses (Base)\nUSDC: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\nUSDT: 0xfde4C96c85940E8F44A6D8d5e4fD4f4C4f9D8E8\nETH: 0x4200000000000000000000000000000000000006\nWETH: 0x4200000000000000000000000000000000000006\nArbitrage Pairs (Base)\n\nCommon triangular paths:\n\nUSDC → ETH → USDC\nUSDC → WETH → USDT → USDC\nUSDT → ETH → USDC → USDT\nSafety Checks\nSlippage: Set amountOutMin = output * (1 - slippage%)\nGas: Estimate gas, ensure profit > gas\nMax Price Impact: Check pool reserves before large trades\nRenounced Contracts: Only trade tokens with renounced ownership\nRisk Profile\nAggressive but audit-first\nSkip all non-renounced contracts\nCheck for honeypot tokens"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/HarleysCodes/kyberswap-arbitrage",
    "publisherUrl": "https://clawhub.ai/HarleysCodes/kyberswap-arbitrage",
    "owner": "HarleysCodes",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/kyberswap-arbitrage",
    "downloadUrl": "https://openagent3.xyz/downloads/kyberswap-arbitrage",
    "agentUrl": "https://openagent3.xyz/skills/kyberswap-arbitrage/agent",
    "manifestUrl": "https://openagent3.xyz/skills/kyberswap-arbitrage/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/kyberswap-arbitrage/agent.md"
  }
}