Kyberswap Arbitrage
Skill by harleyscodes
Why use this skill?
Learn to use the KyberSwap Arbitrage skill for OpenClaw to identify and execute profitable triangular token trades on the Base blockchain with built-in safety controls.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/harleyscodes/kyberswap-arbitrageWhat This Skill Does
The KyberSwap Arbitrage skill is a specialized financial tool designed for the Base network, enabling the OpenClaw agent to programmatically identify and execute triangular arbitrage opportunities. By monitoring price discrepancies between liquidity pools on KyberSwap, the agent can facilitate multi-hop token swaps—such as converting USDC to ETH, then to USDT, and finally back to USDC—to capture the price spread as profit. The skill handles the heavy lifting by interfacing directly with the Router and Factory contracts, calculating optimal swap paths, and managing on-chain execution with built-in slippage and gas management parameters.
Installation
To integrate this skill into your agent, run the following command in your terminal:
clawhub install openclaw/skills/skills/harleyscodes/kyberswap-arbitrage
Ensure that your OpenClaw environment has a configured wallet with sufficient Base ETH for gas fees and the necessary ERC-20 tokens for initial liquidity.
Use Cases
- Automated Profit Capture: Continuously scan the Base network for arbitrage opportunities that are too fast for manual execution.
- Portfolio Rebalancing: Utilize triangular paths to shift between stablecoins and volatile assets while capturing small price inefficiencies.
- Market Analysis: Gather real-time data on price impact and pool depth for specific token pairs on the KyberSwap protocol.
Example Prompts
- "Analyze the current price of USDC against ETH and USDT on KyberSwap to determine if there is a profitable triangular arbitrage path."
- "Execute a multi-hop trade of 500 USDC through the WETH/USDT route if the net profit exceeds the estimated gas cost by at least 0.5%."
- "Monitor the USDC/ETH/USDT path for the next hour and alert me if a spread greater than 0.1% emerges, but do not execute without my confirmation."
Tips & Limitations
- Gas Awareness: Always calculate the total gas consumption of multi-hop transactions. On the Base network, gas is relatively low, but frequent trades can still erode small margins.
- Slippage Protection: Always define a strict
amountOutMinto protect your trade from high price impact or front-running bots. - Risk Management: The skill includes safety checks, but users should verify token contracts before trading. Avoid non-renounced contracts to mitigate honeypot risks. Start with smaller test amounts to validate the execution logic before scaling up.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-harleyscodes-kyberswap-arbitrage": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api, code-execution