YieldVault Agent for Openclaw

An autonomous DeFi agent for BNB Chain that optimizes yield farming through deterministic decision-making and automated smart contract execution.

alannetwork
v1.0.0
Feb 18, 2026
0
805
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install yield-farming-agent

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install yield-farming-agent using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is YieldVault Agent?

The YieldVault Agent is a sophisticated tool within the Openclaw Skills ecosystem designed for autonomous yield farming on the BNB Chain. It bridges the gap between raw smart contract interaction and intelligent portfolio management by utilizing a deterministic decision engine. This ensures that every action—whether it is depositing, harvesting, or rebalancing—is auditable, reproducible, and based on real-time on-chain data.

Built for developers and DeFi power users, the agent integrates seamlessly with YieldVault contracts on both testnet and mainnet. It prioritizes security and efficiency by incorporating conservative risk filtering and net APR calculations that account for fees and risk penalties, ensuring your capital is always working in the most optimized environment possible.

YieldVault Agent Use Cases

  • Automating yield harvesting once rewards reach a specific USD threshold.
  • Periodically rebalancing assets to higher-performing vaults when APR deltas exceed 2%.
  • Managing DeFi portfolios autonomously on the BNB Chain with real-time Telegram notifications.
  • Implementing auditable and deterministic trading strategies for institutional or personal audits.
  • Minimizing manual intervention in compound interest strategies through scheduled execution.

How YieldVault Agent Works

  1. Data Acquisition: The BlockchainReader fetches live vault state data including current APR, Total Value Locked (TVL), and user balances.
  2. Yield Optimization: The agent calculates the Net APR by subtracting fees and risk-adjusted penalties from the raw APR.
  3. Risk Filtering: Vaults are filtered based on a strict risk score threshold (default ≤ 0.5) to ensure capital safety.
  4. Decision Logic: The YieldFarmingAgent selects the optimal action (Harvest, Compound, Rebalance, or No-op) based on predefined thresholds.
  5. Execution: The TransactionExecutor signs and broadcasts the transaction to the BNB Chain with built-in retry logic.
  6. Notification & Logging: A SHA256 auditable record is logged, and a status update is sent via Telegram alerts.

YieldVault Agent Setup

To get started with this skill, install it via the CLI:

clawhub install yieldvault-agent

Configure your environment by copying the deployment template:

cp config.deployed.json .env.local
# Update .env.local with your RPC endpoints and contract addresses

If you are working on a new environment, deploy the contracts and start the scheduler:

cd contracts && npm install
npm run deploy:testnet
node scheduler.js

YieldVault Agent Data Schema & Taxonomy

The YieldVault Agent organizes its operations and configuration through a structured JSON schema to ensure deterministic outcomes.

Component Description
config.scheduler.json Defines chainId, harvest thresholds, rebalance deltas, and risk thresholds.
Execution Logs SHA256 hashed records of every decision for full auditability.
Vault Metadata Tracks vault_id, current_apr, and risk_score for optimization.
Environment Variables Securely stores RPC endpoints and private keys via .env.local.

YieldVault Agent Advanced Features

  • Deterministic Engine: Guarantees that the same input data always produces the same transaction output for enhanced security auditing.
  • Telegram Alert System: Real-time integration providing updates on execution status, APR shifts (>1%), and system errors.
  • Risk-Adjusted Logic: Automated filtering that ignores high-risk vaults, maintaining a conservative investment profile within the Openclaw Skills framework.
  • Multi-Network Support: Fully compatible with both BNB Chain Mainnet (56) and Testnet (97).
  • Constraint Enforcement: Prevents over-exposure by limiting allocation to a maximum of 35% per individual vault.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*