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
CODEBLOCK0
The setup wizard will:
- 1. Guide you to set your private key as environment variable
- Save configuration to INLINECODE2
Commands
Interactive Setup
CODEBLOCK1
Guides you through wallet configuration.
Check Position & APY
CODEBLOCK2
Returns: current deposit, vault shares, APY, wallet balances, estimated earnings.
Generate Report
CODEBLOCK3
Deposit USDC
CODEBLOCK4
Deposits USDC into the Moonwell vault. Handles approval automatically.
Withdraw
CODEBLOCK5
Auto-Compound
CODEBLOCK6
All-in-one command that:
- 1. Checks wallet for reward tokens (WELL, MORPHO)
- Swaps them to USDC via Odos aggregator
- Deposits the USDC back into the vault
Configuration
Config location: INLINECODE3
CODEBLOCK7
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
- 1. 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:
CODEBLOCK8
Packages used:
- -
viem — Ethereum interaction - INLINECODE7 — TypeScript execution
Built by Gekko AI. Powered by ERC-8004.
Gekko Yield — 在USDC上安全赚取收益
通过Base链上的Moonwell旗舰USDC金库赚取USDC收益。
金库: 0xc1256Ae5FF1cf2719D4937adb3bbCCab2E00A2Ca
链: Base (8453)
资产: USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)
为什么选择这个金库?
Moonwell旗舰USDC金库是Base链上最安全的收益获取场所之一:
- - 赋能Coinbase — 为Coinbase的BTC/ETH借贷产品提供2000万美元以上流动性
- 仅蓝筹抵押品 — 贷款由ETH、cbETH、wstETH、cbBTC支持
- 保守的LTV比率 — 健康的抵押品要求
- 隔离市场 — 风险被分区管理
- 经过实战检验 — Morpho的代码库不足650行,不可篡改,经过广泛审计
- 多层治理 — Moonwell DAO + Block Analitica/B.Protocol策展人
当前APY(约4-6%)
| 组成部分 | APY | 来源 |
|---|
| 基础收益 | ~4-5% | 借款人利息 |
| 奖励 |
~0.5-1% | 通过Merkl获得的WELL + MORPHO |
|
总计 |
~4.5-6% | 可持续,来自真实需求 |
收益来自真实的借贷需求,而非不可持续的排放。
快速开始
bash
cd gekko-yield/scripts
pnpm install # 或 npm install
npx tsx setup.ts
设置向导将:
- 1. 引导你将私钥设置为环境变量
- 将配置保存到 ~/.config/gekko-yield/config.json
命令
交互式设置
bash
npx tsx setup.ts
引导你完成钱包配置。
查看持仓与APY
bash
npx tsx status.ts
返回:当前存款、金库份额、APY、钱包余额、预估收益。
生成报告
bash
Telegram/Discord格式(默认)
npx tsx report.ts
JSON格式(用于自动化)
npx tsx report.ts --json
纯文本
npx tsx report.ts --plain
存入USDC
bash
npx tsx deposit.ts <金额>
示例:存入100 USDC
npx tsx deposit.ts 100
将USDC存入Moonwell金库。自动处理授权。
提现
bash
提取指定数量的USDC
npx tsx withdraw.ts <金额>
全部提取(赎回所有份额)
npx tsx withdraw.ts all
自动复投
bash
npx tsx compound.ts
一站式命令:
- 1. 检查钱包中的奖励代币(WELL、MORPHO)
- 通过Odos聚合器将其兑换为USDC
- 将USDC重新存入金库
配置
配置文件位置:~/.config/gekko-yield/config.json
json
{
wallet: {
source: env,
envVar: PRIVATE_KEY
},
rpc: https://mainnet.base.org
}
安全性
⚠️ 此技能管理真实资金。请仔细审查:
- - 私钥在运行时从环境变量加载
- 脚本不会记录或写入密钥到磁盘
- 所有交易在执行前都会模拟
- 每次运行时验证合约地址
- 脚本在发送前显示交易预览
推荐设置
- 1. 专用钱包 — 为此技能创建一个热钱包
- 有限资金 — 只存入你愿意放在热钱包中的金额
- 保持Gas充足 — 在Base链上保留少量ETH用于交易
错误处理
| 错误 | 原因 | 修复 |
|---|
| USDC不足 | 钱包中USDC不够 | 跨链/转账更多USDC到Base |
| Gas不足 |
交易所需ETH不够 | 向Base链上钱包添加ETH |
| 钱包未配置 | 缺少配置 | 运行 npx tsx setup.ts |
| PRIVATE
KEY未设置 | 缺少环境变量 | 设置 $env:PRIVATEKEY=你的密钥 |
依赖项
脚本需要Node.js 18+。首次运行前安装依赖:
bash
cd scripts && pnpm install
使用的包:
- - viem — 以太坊交互
- tsx — TypeScript执行
由Gekko AI构建。基于ERC-8004驱动。