mamo
Interact with Mamo DeFi yield strategies on Base (Moonwell). Deposit/withdraw USDC, cbBTC, MAMO, or ETH into automated yield strategies. Check APY rates and account status.
- License 许可
- MIT
- 最近更新
- 2026-08-23
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- mamo
- version
- 1.0.0
- metadata
- { "clawdbot": { "emoji": "?", "category": "defi", "requires": { "bins": [ "node" ] } } }
- description
- Interact with Mamo DeFi yield strategies on Base (Moonwell). Deposit/withdraw USDC, cbBTC, MAMO, or ETH into automated yield strategies. Check APY rates and account status.
02 资源文件 34
- 参考文档_meta.json265 B
- 参考文档package-lock.json154.2 KB
- 参考文档package.json1.8 KB
- 参考文档README.md5.8 KB
- 参考文档references/contracts.md3.2 KB
- 参考文档references/mamo-api.md1.8 KB
- 脚本scripts/mamo.mjs27.1 KB
- 脚本src/clients/api.ts3.9 KB
- 脚本src/clients/blockchain.ts11.3 KB
- 脚本src/clients/prices.test.ts7.2 KB
- 脚本src/clients/prices.ts4.7 KB
- 脚本src/commands/apy.ts4.0 KB
- 脚本src/commands/create.ts7.3 KB
- 脚本src/commands/deposit.ts9.3 KB
- 脚本src/commands/portfolio.test.ts5.3 KB
- 脚本src/commands/portfolio.ts7.1 KB
- 脚本src/commands/status.ts4.8 KB
- 脚本src/commands/withdraw.ts7.0 KB
- 脚本src/config/constants.ts4.5 KB
- 脚本src/config/strategies.test.ts3.1 KB
- 脚本src/config/strategies.ts1.7 KB
- 脚本src/config/tokens.test.ts2.5 KB
- 脚本src/config/tokens.ts1.6 KB
- 脚本src/index.ts4.5 KB
- 脚本src/types/index.ts4.9 KB
- 脚本src/utils/errors.test.ts4.0 KB
- 脚本src/utils/errors.ts4.4 KB
- 脚本src/utils/logger.ts3.1 KB
- 脚本src/utils/storage.test.ts4.8 KB
- 脚本src/utils/storage.ts4.9 KB
- 脚本src/utils/validation.test.ts4.7 KB
- 脚本src/utils/validation.ts3.3 KB
- 参考文档tsconfig.json1.0 KB
- 脚本vitest.config.ts401 B
03 SKILL.md 正文
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
cd ~/clawd/skills/mamo/scripts # or wherever this skill lives
npm install
export MAMO_WALLET_KEY=0x... # wallet private key
export MAMO_RPC_URL=https://... # optional, defaults to Base public RPC
Commands
# Create a yield strategy (deploys your personal strategy contract via on-chain factory)
node mamo.mjs create usdc_stablecoin
node mamo.mjs create cbbtc_lending
node mamo.mjs create eth_lending
# Deposit tokens (approve + deposit to your strategy contract)
node mamo.mjs deposit 100 usdc
node mamo.mjs deposit 0.5 cbbtc
# Withdraw tokens
node mamo.mjs withdraw 50 usdc
node mamo.mjs withdraw all cbbtc
# Account overview — wallet balances + strategy positions
node mamo.mjs status
# Current APY rates
node mamo.mjs apy
node mamo.mjs apy usdc_stablecoin
How It Works
- 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 | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 |
| 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_KEYin env vars, never in committed files - All transactions are simulated before sending
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, or submitting paper reviews via API at http://150.158.152.82:8000.
git-summary
Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.
agent-constitution
Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.