Overview
- Skill Key
- harleyscodes/saucerswap-arbitrage
- Author
- harleyscodes
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/harleyscodes/saucerswap-arbitrage
- Latest Commit SHA
- 7714c76acf91bde3723e987e1084409f3eb5963b
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 Saucerswap Arbitrage 技能。 若已安装,则直接安装 Saucerswap Arbitrage 技能。
# SaucerSwap Arbitrage
## Overview
SaucerSwap is the main DEX on Hedera. Triangular arbitrage: profit from price differences between 3 tokens.
## Key Contracts (Mainnet)
- **SaucerSwap V1**: `0xcaec9706a4622D356d2D3aEd8f8D40c51f0C0dF`
- **SaucerSwap V2**: `0xA6F4E11E5D8A3F62A7D4E3E6B1E7F3C9E8F2A1B4`
## Get Quotes (V1)
```typescript
const axios = require('axios');
async function getQuote(amountIn, path) {
const [tokenA, tokenB, tokenC] = path;
const url = `https://mainnet-api.saucerswap.fi/route?from=${tokenA}&to=${tokenB}&amount=${amountIn}`;
const response = await axios.get(url);
return response.data;
}
```
## Token Addresses (Hedera)
- **HBAR**: `0.0.1000` (wrapped: `0x...` in EVM format)
- **USDC**: `0.0.456719`
- **USDT**: `0.0.456720`
- **ETH**: `0.0.456721`
- **WBTC**: `0.0.456722`
- **SAUCE**: `0.0.456723`
## Arbitrage Logic
### 1. Check Prices
```typescript
// Get prices for potential paths
const paths = [
['USDC', 'HBAR', 'USDC'],
['USDC', 'SAUCE', 'USDC'],
['HBAR', 'USDC', 'HBAR']
];
for (const path of paths) {
const out = await getQuote(1000, path);
const profit = out - 1000;
console.log(`${path.join(' → ')}: ${profit}`);
}
```
### 2. Execute Swap
```typescript
// Via HashPack or direct contract call
const tx = new ContractExecuteTransaction()
.setContractId(poolAddress)
.setFunction("swap")
.setParameters([...]);
```
## Safety Checks
1. **Slippage**: Set min output = expected * 0.97
2. **Gas**: Estimate network fees (tinybars)
3. **Pool Depth**: Check liquidity before large trades
4. **Hedera Gossip**: Account for network latency
## Key Differences from EVM
- **No EOA signatures**: Must use Hedera native signing
- **Network fees**: Paid in tinybars (not gas)
- **Transaction types**: Use HAPI, not EVM
- **Token format**: Use `0.0.xxxxx` not `0x...`
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.