Gekko Yield:Base 链上 USDC 自动质押 - Openclaw Skills
作者:互联网
2026-03-25
什么是 Gekko Yield?
Gekko Yield 是 Openclaw Skills 的专业级实现,旨在简化 Base 区块链上的 USDC 收益生成。通过瞄准 Moonwell Flagship USDC 金库(一个为机构级流动性提供动力的安全环境),该技能允许用户以极低的摩擦力投入闲置资产。它将复杂的智能合约交互抽象为简单的可执行脚本,使去中心化金融直接从您的开发环境中即可访问。
该技能在构建时充分考虑了安全性和效率,利用了 Morpho 协议经过审计的代码库,确保通过经过实战检验的逻辑管理用户资金。无论您是寻求将收益耕作集成到更大工作流中的开发人员,还是寻求以 CLI 优先方式处理 DeFi 的高级用户,Gekko Yield 都提供了管理仓位、追踪表现并通过智能自动化实现收益最大化所需的基础设施。
下载入口:https://github.com/openclaw/skills/tree/main/skills/sergey1997/gekko-yield
安装与下载
1. ClawHub CLI
从源直接安装技能的最快方式。
npx clawhub@latest install gekko-yield
2. 手动安装
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
/skills/
优先级:工作区 > 本地 > 内置
3. 提示词安装
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 gekko-yield。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
Gekko Yield 应用场景
- 在 Base 网络上将 USDC 自动存入高流动性、低风险的借代金库。
- 使用 Openclaw Skills 为 Discord 或 T@elegrimm 机器人设置定期收益报告。
- 通过自动复投 WELL 和 MORPHO 奖励代币来最大化总回报。
- 从单个终端界面坚控多个账户的浅包余额和金库 APY。
- 用户通过安全的设置向导配置专用浅包和 RPC 提供商来初始化环境。
- 该技能与 USDC 代币合约交互,以授权并将资金存入 Moonwell 金库地址。
- 坚控引擎从区块链获取实时数据,计算当前份额、标的资产价值和浮动借款人利率。
- 触发时,复投逻辑会扫描累积的奖励代币,通过流动性聚合器将其兑换为 USDC,并重新存入金库。
- 绩效数据被处理并格式化为各种模式,用于人类可读的报告或机器可读的 JSON 导出。
Gekko Yield 配置指南
要开始使用这些 Openclaw Skills,请确保您已安装 Node.js 18+ 并遵循以下步骤:
# 进入技能脚本目录
cd gekko-yield/scripts
# 安装依赖项
pnpm install
# 启动交互式配置向导
npx tsx setup.ts
您必须将 PRIVATE_KEY 设置为环境变量,以便技能能够安全地签署交易。
Gekko Yield 数据架构与分类体系
该技能使用以下结构组织其配置和运行数据:
| 组件 | 位置/格式 | 描述 |
|---|---|---|
| 配置 | ~/.config/gekko-yield/config.json |
存储 RPC 设置和浅包环境变量引用。 |
| 报告 | JSON / 纯文本 / Markdown | 报告脚本的结构化输出,用于外部集成。 |
| 金库元数据 | 硬编码常量 | 经验证的 Base 链上 Moonwell、Morpho 和 USDC 合约地址。 |
| 交易日志 | 控制台输出 | 每次区块链交互的实时模拟和执行数据。 |
name: gekko-yield description: Earn yield on USDC by supplying to the Moonwell Flagship USDC vault on Base. Use when depositing USDC, withdrawing from the vault, checking position/APY, or generating yield reports. version: 1.0.0 metadata: {"clawdbot":{"emoji":"??","category":"defi","requires":{"bins":["node"]}}}
Gekko Yield — Earn safe yield on USDC
Earn yield on USDC via the Moonwell Flagship USDC vault on Base.
Vault: 0xc1256Ae5FF1cf2719D4937adb3bbCCab2E00A2Ca
Chain: Base (8453)
Asset: USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)
Why This Vault?
The Moonwell Flagship USDC vault is one of the safest places to earn yield on Base:
- Powers Coinbase — Provides $20M+ liquidity to Coinbase's BTC/ETH borrow products
- Blue-chip collateral only — Loans backed by ETH, cbETH, wstETH, cbBTC
- Conservative LTV ratios — Healthy collateral requirements
- Isolated markets — Risk is compartmentalized
- Battle-tested — Morpho's codebase is <650 lines, immutable, extensively audited
- Multi-layer governance — Moonwell DAO + Block Analitica/B.Protocol curators
Current APY (~4-6%)
| Component | APY | Source |
|---|---|---|
| Base yield | ~4-5% | Borrower interest |
| Rewards | ~0.5-1% | WELL + MORPHO via Merkl |
| Total | ~4.5-6% | Sustainable, from real demand |
Yields come from real borrowing demand, not unsustainable emissions.
Quick Start
cd gekko-yield/scripts
pnpm install # or npm install
npx tsx setup.ts
The setup wizard will:
- Guide you to set your private key as environment variable
- Save configuration to
~/.config/gekko-yield/config.json
Commands
Interactive Setup
npx tsx setup.ts
Guides you through wallet configuration.
Check Position & APY
npx tsx status.ts
Returns: current deposit, vault shares, APY, wallet balances, estimated earnings.
Generate Report
# T@elegrimm/Discord format (default)
npx tsx report.ts
# JSON format (for automation)
npx tsx report.ts --json
# Plain text
npx tsx report.ts --plain
Deposit USDC
npx tsx deposit.ts
# Example: deposit 100 USDC
npx tsx deposit.ts 100
Deposits USDC into the Moonwell vault. Handles approval automatically.
Withdraw
# Withdraw specific amount of USDC
npx tsx withdraw.ts
# Withdraw all (redeem all shares)
npx tsx withdraw.ts all
Auto-Compound
npx tsx compound.ts
All-in-one command that:
- Checks wallet for reward tokens (WELL, MORPHO)
- Swaps them to USDC via Odos aggregator
- Deposits the USDC back into the vault
Configuration
Config location: ~/.config/gekko-yield/config.json
{
"wallet": {
"source": "env",
"envVar": "PRIVATE_KEY"
},
"rpc": "https://mainnet.base.org"
}
Security
?? This skill manages real funds. Review carefully:
- Private keys loaded at runtime from environment variable
- Keys never logged or written to disk by scripts
- All transactions simulated before execution
- Contract addresses verified on each run
- Scripts show transaction preview before sending
Recommended Setup
- Dedicated wallet — Create a hot wallet just for this skill
- Limited funds — Only deposit what you're comfortable having in a hot wallet
- Keep gas funded — Maintain small ETH balance on Base for transactions
Error Handling
| Error | Cause | Fix |
|---|---|---|
| Insufficient USDC | Not enough USDC in wallet | Bridge/transfer more USDC to Base |
| Insufficient gas | Not enough ETH for tx | Add ETH to wallet on Base |
| Wallet not configured | Missing config | Run npx tsx setup.ts |
| PRIVATE_KEY not set | Missing env var | Set $env:PRIVATE_KEY="your-key" |
Dependencies
Scripts require Node.js 18+. Install deps before first run:
cd scripts && pnpm install
Packages used:
viem— Ethereum interactiontsx— TypeScript execution
Built by Gekko AI. Powered by ERC-8004.
相关推荐
专题
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
最新数据
相关文章
Elasticsearch93新增bfloat16向量支持
解析OceanBase生态工具链之OAT_obd_OCP_obshell
贝叶斯不确定性引导的早停框架ESTune与OceanBase校企联合研究
杈炬ⅵ&浜哄ぇ閲戜粨閫傞厤瀹炴垬锛歋eaTunnel鍦ㄤ俊鍒涙暟鎹钩鍙颁腑鐨勫簲鐢ㄤ笌韪╁潙鎬荤粨
2026年1月中国数据库流行度排行榜:OB连冠领跑贺新元PolarDB跃居次席显锐气
社区译文解析FUD与真相MySQL是否真的被弃用了
英伟达重新规划AI推理加速布局 暂停Rubin CPU转攻Groq LPU
gpress v1.2.2 全新上线 Web3内容平台迎来更新
CMake 4.3.0 正式推出
短剧采用AI换脸技术使角色酷似明星 制作方与播出方构成侵权
AI精选
