技能详情(站内镜像,无评论)
作者:Alan Estrada @alannetwork
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v1.0.0
统计:⭐ 0 · 475 · 0 current installs · 0 all-time installs
⭐ 0
安装量(当前) 0
🛡 VirusTotal :可疑 · OpenClaw :可疑
Package:alannetwork/yieldvault-agent
安全扫描(ClawHub)
- VirusTotal :可疑
- OpenClaw :可疑
OpenClaw 评估
The skill's code and runtime instructions match an autonomous yield‑farming agent, but registry metadata and install declarations omit required credentials and environment data (wallet keys, RPC endpoints, Telegram token) and there are other inconsistencies that warrant review before use.
目的
The skill legitimately needs RPC endpoints, a signing wallet (private key or hardware wallet), and notification credentials (Telegram bot token/chat id) to perform on‑chain transactions and alerts. However the registry metadata declares no required env vars/primary credential and no required binaries, which is inconsistent with the code (tx-executor, scheduler, notifications) that signs and broadcasts transactions and calls external APIs.
说明范围
SKILL.md instructs running npm, deploying contracts, copying config.deployed.json to .env.local and editing RPC/contract addresses and starting scheduler.js. It claims 'no hardcoded private keys (use environment variables)' but does not list which env vars must be set. The runtime instructions and included files (tx-executor.js, scheduler.js, notifications.js) will read secrets/config and perform network I/O and blockchain transactions — this …
安装机制
There is no explicit install spec, which keeps install risk low, but the package includes many code files, artifacts, and package-lock files and instructs to run npm install in the contracts directory. That means executing third‑party code locally. No external download URLs or URL shortcut patterns were observed in the provided SKILL.md, but running the code will execute network calls and may install packages declared in package.json/package-l…
证书
The skill requires high‑value secrets in practice (wallet private key or hardware wallet access, RPC endpoint, Telegram bot token, possibly keeper/keeperAddress credentials) to function. The registry says 'Required env vars: none' and 'Primary credential: none', which is not proportional to the actions the code performs (sign & broadcast transactions). This mismatch is a significant omission and increases risk of accidental secret exposure if …
持久
The skill is not marked always:true and does not request system‑wide persistence in metadata. It runs a scheduler to autonomously invoke decisions and execute transactions when started — autonomy is expected for this use case. There is no indication it modifies other skills or global agent configuration.
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「YieldVault Agent」。简介:Autonomous yield farming agent for BNB Chain with deterministic execution, smar…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/alannetwork/yieldvault-agent/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: yieldvault-agent
description: Autonomous yield farming agent for BNB Chain with deterministic execution, smart contract integration, and automated decision-making.
---
# YieldVault Agent
Autonomous yield farming agent for BNB Chain with deterministic execution, smart contract integration, and automated decision-making.
## Features
- **Deterministic Decision Engine** - Same input always produces same output (auditable)
- **Smart Contract Integration** - Interact with YieldVault contracts on BNB testnet/mainnet
- **Autonomous Scheduler** - Run farming decisions hourly without manual intervention
- **Transaction Executor** - Automatic DEPOSIT, WITHDRAW, HARVEST, COMPOUND, REBALANCE actions
- **Telegram Alerts** - Real-time notifications for executions, APR changes, and errors
- **Risk Management** - Conservative risk filtering (only vaults with risk_score ≤ 0.5)
- **Yield Optimization** - Net APR calculation (apr - fees - risk_penalty)
## Installation
```bash
clawhub install yieldvault-agent
```
## Quick Start
### 1. Configure
```bash
cp config.deployed.json .env.local
# Edit with your contract addresses and RPC endpoint
```
### 2. Deploy Contracts (if needed)
```bash
cd contracts
npm install
npm run deploy:testnet
```
### 3. Run Tests
```bash
npm test # Unit tests
node test.live.mock.js # Integration tests (offline)
node test.live.js # Live testnet tests
```
### 4. Start Scheduler
```bash
node scheduler.js
# Runs decision cycle every hour against testnet
```
### 5. Monitor Alerts
Telegram notifications sent automatically for:
- Execution started (vault_id, action, amount)
- APR changes (>1% delta)
- Errors (with severity level)
- Cycle completion (stats summary)
## Architecture
```
Smart Contracts (BNB Testnet/Mainnet)
↓
BlockchainReader (live vault data)
↓
YieldFarmingAgent (deterministic decisions)
↓
TransactionExecutor (sign & broadcast)
↓
Scheduler (hourly automation)
↓
Notifications (Telegram alerts)
```
## Configuration
Edit `config.scheduler.json`:
```json
{
"chainId": 97,
"interval_minutes": 60,
"harvest_threshold_usd": 25,
"rebalance_apr_delta": 0.02,
"max_allocation_percent": 0.35,
"risk_score_threshold": 0.5
}
```
## Decision Logic
1. **Read** current vault state (APR, TVL, user balance)
2. **Calculate** Net APR = apr - fees - (risk_score × 0.10)
3. **Filter** vaults with risk_score ≤ 0.5
4. **Select** vault with highest Net APR
5. **Decide** action:
- HARVEST if pending_rewards ≥ $25 USD
- COMPOUND if net_apr ≥ 2% delta
- REBALANCE if another vault beats current by ≥ 2%
- NOOP if already optimized
6. **Execute** transaction (with retry logic)
7. **Log** execution record (SHA256 auditable)
## Supported Networks
- **Testnet:** BNB Chain Testnet (chainId: 97)
- **Mainnet:** BNB Chain Mainnet (chainId: 56)
## Security
- ✅ Deterministic execution (reproducible, auditable)
- ✅ SHA256 audit trail for every decision
- ✅ Risk filtering (conservative)
- ✅ Constraint enforcement (max 35% per vault)
- ✅ Retry logic with exponential backoff
- ✅ No hardcoded private keys (use environment variables)
## Production Readiness
For mainnet deployment, add:
1. **Chainlink Oracle** - Live APR feeds
2. **Hardware Wallet Support** - Ledger/Trezor signing
3. **Smart Contract Audit** - Professional security review
4. **Emergency Pause** - Multi-sig pause mechanism
See `FINAL_CHECKLIST.md` for complete production requirements.
## Documentation
- `README.md` - Full user guide
- `SKILL.md` - This file
- `FINAL_CHECKLIST.md` - Production requirements
- `INTEGRATION_GUIDE.md` - Smart contract integration
- `EXAMPLES.md` - Usage examples
- `RESPUESTAS_PREGUNTAS.md` - FAQ & architecture
## Support
Issues & PRs welcome: https://github.com/open-web-academy/yieldvault-agent-bnb
## License
MIT