YieldVault Agent for Openclaw

An autonomous yield farming agent for BNB Chain that uses a deterministic engine to manage vaults, optimize APR, and execute smart contract transactions.

alannetwork
v1.0.0
Feb 18, 2026
0
1.4k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install yieldvault-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 yieldvault-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?

YieldVault Agent is a sophisticated autonomous solution designed specifically for the BNB Chain ecosystem. It functions as a deterministic decision engine, ensuring that every farming action—whether it is depositing, harvesting, or rebalancing—is based on auditable, reproducible logic. By integrating directly with YieldVault smart contracts, it bridges the gap between AI-driven strategy and blockchain execution.

This agent is part of the growing ecosystem of Openclaw Skills, providing developers and DeFi enthusiasts with a robust framework for automated asset management. It prioritizes security through conservative risk filtering and maintains transparency via SHA256-signed audit trails for every decision made by the agent.

YieldVault Agent Use Cases

  • Automated harvesting of DeFi rewards when they exceed a specific USD threshold.
  • Dynamic rebalancing of capital to vaults with higher net APR performance.
  • Autonomous yield compounding to maximize long-term returns on BNB Chain.
  • Real-time monitoring and alerting for yield fluctuations and execution events via Telegram.

How YieldVault Agent Works

  1. The BlockchainReader service fetches live vault data, including APR, TVL, and user balances from the BNB Chain.
  2. The YieldFarmingAgent calculates the Net APR by subtracting fees and risk penalties from the raw APR.
  3. The engine filters available vaults based on a predefined risk score threshold (defaulting to 0.5 or less).
  4. Based on a set of logic rules (e.g., 2% APR delta), the agent determines the optimal action: Harvest, Compound, Rebalance, or No-op.
  5. The TransactionExecutor signs and broadcasts the transaction to the network using secure environment variables.
  6. The Scheduler triggers this entire cycle hourly, while the Notification system sends status updates to Telegram.

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 and editing it with your RPC endpoints and contract addresses:

cp config.deployed.json .env.local

If you are deploying your own contracts on the BNB testnet, use the included deployment script:

cd contracts
npm install
npm run deploy:testnet

Finally, initiate the hourly automation cycle:

node scheduler.js

YieldVault Agent Data Schema & Taxonomy

The agent utilizes JSON-based configuration files and generates auditable logs. Below is the primary configuration structure:

File Purpose
config.scheduler.json Defines intervals, thresholds, and risk parameters.
config.deployed.json Maps contract addresses for the specific ChainID.
.env.local Stores sensitive RPC endpoints and private keys (not committed).

Decision Log Schema: Each execution generates a SHA256 auditable record containing:

  • vault_id: Target vault identifier.
  • action: The executed operation (e.g., HARVEST, REBALANCE).
  • net_apr: The calculated APR at the time of execution.
  • timestamp: ISO 8601 execution time.

YieldVault Agent Advanced Features

  • Deterministic execution engine ensuring all decisions are reproducible and auditable.
  • Conservative risk management filtering to protect capital from high-risk vaults.
  • Multi-network support for both BNB Chain Testnet and Mainnet via Openclaw Skills.
  • Exponential backoff and retry logic for robust blockchain transaction broadcasting.
  • Extensive audit trail with SHA256 logging for institutional-grade transparency.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*