Overview
- Skill Key
- alannetwork/clawtrade-bnb
- Author
- alannetwork
- Source Repo
- openclaw/skills
- Version
- 1.1.0
- Source Path
- skills/alannetwork/clawtrade-bnb
- Latest Commit SHA
- 4e2573717c8217a90556f3578a571d6eaf2dc032
Autonomous DeFi trading agent for BNB Chain with multi-strategy engine, network switching, and reinforced learning.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 clawtrade-bnb 技能。 若已安装,则直接安装 clawtrade-bnb 技能。
# CawTrade BNB - Autonomous DeFi Trading Agent v1.1.0 **Production-ready autonomous trading agent** for BNB Chain testnet & mainnet. Features 3 intelligent strategies, real-time performance analytics, on-chain event logging, and self-improving reinforced learning. ## Core Features ### 🤖 Three Autonomous Strategies 1. **Compound Yield** - Auto-reinvest harvested rewards for exponential growth 2. **Rebalance** - Move capital from low-APR to high-APR vaults automatically 3. **Dynamic Harvest** - Intelligent harvesting based on gas cost optimization ### 🌐 Network Switching - Instant testnet ↔ mainnet toggle (no restart) - Separate configs per network (gas, thresholds, RPCs) - Contract address mapping per chain - Persistent network preferences ### 📊 Real-Time Analytics - Realized APR (actual, based on historical yields) - Per-vault performance breakdown - Strategy effectiveness scoring - Success rate tracking (target: >90%) - Failure pattern detection ### 🧠 Reinforced Learning - Auto-learns from past failures - Dynamically optimizes strategy parameters - Adjusts thresholds based on success rates - Confidence scoring per strategy - Self-improving over time ### ⛓️ On-Chain Event Logging - All actions logged with TX hashes - Auditable blockchain trail - BNB Testnet Scanner links - Complete execution history ### 🎮 Control Panel CLI - Interactive command-line interface - Network management commands - Performance metrics dashboard - Learning progress tracking - Real-time optimization ## Installation & Setup ### 1. Install Skill ```bash clawhub install clawtrade-bnb cd ~/.openclaw/workspace/skills/clawtrade-bnb npm install ``` ### 2. Configure Environment ```bash # Copy example config cp config.deployed.json config.live.json # Edit with your settings nano config.live.json # Set RPC endpoint, contract addresses, wallet ``` ### 3. Set Private Key (Secure) ```bash # Option A: Environment variable (recommended) export PRIVATE_KEY="your_testnet_private_key" # Opti...
# Autonomous Yield Farming Agent Skill
**Status:** ✅ Production Ready | **Chain:** BNB Testnet (97) / Mainnet (56) | **Model:** Deterministic Decision Engine
## Quick Start
### Installation
```bash
npm install
# or link as OpenClaw skill
ln -s /home/ubuntu/.openclaw/workspace/skills/clawtrade-bnb /path/to/openclaw/skills/
```
### Basic Usage
```javascript
const YieldFarmingAgent = require('./index.js');
const mockdata = require('./mockdata.json');
const agent = new YieldFarmingAgent({
chainId: 97,
harvest_threshold_usd: 25,
rebalance_apr_delta: 0.02,
max_allocation_percent: 0.35
});
// Your current position state
const allocation = {
vault_bnb_lp_001: {
shares: "1000",
amount_usd: "50000",
pending_rewards_usd: "1200"
}
};
// Get deterministic decision
const decision = agent.decide(mockdata.vaults, allocation);
console.log(JSON.stringify(decision, null, 2));
```
### CLI Execution
```bash
# Run with default example
node index.js
# Run with hash verification
node index.js --verify
```
## Decision Flow
```
┌─────────────────────────────────────────────────┐
│ 1. Load Vaults & Filter by Risk (score ≤ 0.5) │
└────────────────────┬────────────────────────────┘
│
┌────────────────────▼────────────────────────────┐
│ 2. Calculate NET_APR = apr - fees - risk_penalty │
│ (risk_penalty = risk_score × 0.10) │
└────────────────────┬────────────────────────────┘
│
┌────────────────────▼────────────────────────────┐
│ 3. Rank by NET_APR (descending) │
│ → Select best_vault │
└────────────────────┬────────────────────────────┘
│
┌──────────┴──────────┐
│ │
┌─────▼─────┐ ┌─────▼──────┐
│ HARVEST? │ │ COMPOUND? │
│ rewards │ │ net_apr >= │
│ >= $25 │ │ threshold │
└─────┬─────┘ └─────┬──────┘
│ YES...
heyixuan2
Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pipeline: search → generate → analyze → colorize → preview → open BS → user slice → print → monitor. Supports all 9 Bambu Lab printers (A1 Mini, A1, P1S, P2S, X1C, X1E, H2C, H2S, H2D).
human-pages-ai
Search and hire real humans for tasks — photography, delivery, research, and more
zseven-w
Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.
capt-marbles
Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discoverability and citation.
cchacons
The job marketplace where bots hire bots. Post FREE or paid $WAGE jobs, with on-chain escrow, faucet rewards, referrals, judge staking, task inbox, smart matching, checkpoints, oversight, webhooks, onboarding, and human owner dashboard.
cccarv82
Optimized OpenClaw backup skill for creating full snapshots with workspace archive splitting, change summaries, restore instructions, and Discord notifications. Use when you need to set up or run automated backups, configure backup cron jobs, or document/restore OpenClaw state. Triggers on backup automation, backup scripts, snapshot/restore, or GitHub backup repos.