Mamo — DeFi Yield Aggregator (Moonwell on Base)
Mamo is a DeFi yield aggregator built by Moonwell on Base chain. It deploys per-user smart contracts that split deposits between Moonwell core markets and Morpho vaults for optimized yield, with auto-compounding of rewards.
Chain: Base (8453)
Strategies: USDC stablecoin, cbBTC lending, ETH lending, MAMO staking
Setup
CODEBLOCK0
Commands
CODEBLOCK1
How It Works
- 1. Create strategy → Calls the on-chain StrategyFactory to deploy a personal proxy contract owned by your wallet
- Deposit → CLI approves token spend, then calls
deposit(amount) on your strategy contract - Yield accrues → Strategy splits funds between Moonwell + Morpho, auto-compounds rewards via CowSwap
- Withdraw → Only the owner (your wallet) can withdraw. Funds go directly to your wallet
Strategy addresses are stored locally in ~/.config/mamo/strategies.json (the on-chain registry may not be updated for user-created strategies).
Key Addresses
| Token | Address |
|---|
| USDC | INLINECODE2 |
| cbBTC |
0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf |
| MAMO |
0x7300b37dfdfab110d83290a29dfb31b1740219fe |
| Registry |
0x46a5624C2ba92c08aBA4B206297052EDf14baa92 |
Security
- - Use a dedicated hot wallet — not your main holdings
- Only deposit what you're comfortable having in a hot wallet
- Store
MAMO_WALLET_KEY in env vars, never in committed files - All transactions are simulated before sending
Mamo — DeFi 收益聚合器(Base 链上的 Moonwell)
Mamo 是由 Moonwell 在 Base 链上构建的 DeFi 收益聚合器。它为每个用户部署智能合约,将存款在 Moonwell 核心市场和 Morpho 金库之间进行分配,以优化收益,并自动复投奖励。
链: Base (8453)
策略: USDC 稳定币、cbBTC 借贷、ETH 借贷、MAMO 质押
设置
bash
cd ~/clawd/skills/mamo/scripts # 或此技能所在的目录
npm install
export MAMOWALLETKEY=0x... # 钱包私钥
export MAMORPCURL=https://... # 可选,默认为 Base 公共 RPC
命令
bash
创建收益策略(通过链上工厂部署您的个人策略合约)
node mamo.mjs create usdc_stablecoin
node mamo.mjs create cbbtc_lending
node mamo.mjs create eth_lending
存入代币(授权 + 存入您的策略合约)
node mamo.mjs deposit 100 usdc
node mamo.mjs deposit 0.5 cbbtc
提取代币
node mamo.mjs withdraw 50 usdc
node mamo.mjs withdraw all cbbtc
账户概览 — 钱包余额 + 策略持仓
node mamo.mjs status
当前 APY 利率
node mamo.mjs apy
node mamo.mjs apy usdc_stablecoin
工作原理
- 1. 创建策略 → 调用链上 StrategyFactory 部署一个由您的钱包拥有的个人代理合约
- 存入 → CLI 批准代币支出,然后在您的策略合约上调用 deposit(amount)
- 收益累积 → 策略将资金在 Moonwell + Morpho 之间分配,通过 CowSwap 自动复投奖励
- 提取 → 只有所有者(您的钱包)可以提取。资金直接转入您的钱包
策略地址本地存储在 ~/.config/mamo/strategies.json 中(链上注册表可能不会为用户创建的策略更新)。
关键地址
| 代币 | 地址 |
|---|
| USDC | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 |
| cbBTC |
0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf |
| MAMO | 0x7300b37dfdfab110d83290a29dfb31b1740219fe |
| 注册表 | 0x46a5624C2ba92c08aBA4B206297052EDf14baa92 |
安全
- - 使用专用热钱包 — 不要使用您的主要资产
- 只存入您愿意放在热钱包中的资金
- 将 MAMOWALLETKEY 存储在环境变量中,切勿提交到文件中
- 所有交易在发送前都会进行模拟