v2.0 — AI-powered yield farming strategy engine
Powered by Xiaomi MiMo-V2.5-Pro · 10 DeFi Protocols · 6 Chains
Built for the 100T Token Creator Incentive Program
DeFi yield farming is fragmented across hundreds of protocols, chains, and tokens. Finding the best risk-adjusted yields requires hours of research — checking APYs, evaluating smart contract risk, calculating impermanent loss, and monitoring liquidity. Most farmers either play it safe with low yields or ape into risky pools and lose capital.
MiMo DeFi Yield Optimizer uses MiMo-V2.5-Pro's reasoning engine to scan, evaluate, and optimize yield farming strategies in seconds. It analyzes 10 DeFi protocols across 6 chains, calculates risk-adjusted APY, and generates optimal capital allocation — all powered by AI reasoning.
Just tell it your capital and risk tolerance. MiMo does the rest.
┌──────────────────────────────────────────────────────────────┐
│ PROTOCOL REGISTRY │
├──────────────┬───────────────────────────────────────────────┤
│ LENDING │ Aave V3 · Compound V3 · MakerDAO (DSR) │
│ STAKING │ Lido │
│ DEX LP │ Uniswap V3 · Curve · Balancer V2 · SushiSwap│
│ AGGREGATOR │ Convex Finance · Yearn V3 │
├──────────────┼───────────────────────────────────────────────┤
│ CHAINS │ Ethereum · Arbitrum · Optimism · Polygon │
│ │ Base · Avalanche · BNB · Gnosis │
└──────────────┴───────────────────────────────────────────────┘
| Protocol | Type | TVL | Risk | Chains |
|---|---|---|---|---|
| Aave V3 | Lending | $12.5B | 15/100 | ETH, ARB, OP, POL, BASE, AVAX |
| Lido | Staking | $14.8B | 12/100 | ETH |
| MakerDAO | Lending | $8.5B | 10/100 | ETH |
| Uniswap V3 | DEX LP | $5.1B | 20/100 | ETH, ARB, OP, POL, BASE, BNB |
| Compound V3 | Lending | $3.2B | 18/100 | ETH, ARB, POL, BASE |
| Curve | DEX LP | $2.8B | 22/100 | ETH, ARB, OP, POL, AVAX |
| Convex | Aggregator | $1.9B | 25/100 | ETH |
| Balancer V2 | DEX LP | $1.2B | 22/100 | ETH, ARB, OP, POL, GNO |
| Yearn V3 | Aggregator | $450M | 20/100 | ETH, ARB, OP, POL, BASE |
| SushiSwap | DEX LP | $380M | 28/100 | ETH, ARB, OP, POL, BNB, AVAX |
┌─────────────────────────────────────────────────────────────┐
│ YIELD OPTIMIZATION PIPELINE │
├──────────────┬──────────────────────────────────────────────┤
│ SCAN │ 10 protocols × 6 chains × 7 tokens = 420+ │
│ │ yield opportunities in real-time │
├──────────────┼──────────────────────────────────────────────┤
│ ANALYZE │ Risk scoring: smart contract, liquidity, │
│ │ impermanent loss, oracle, admin keys │
├──────────────┼──────────────────────────────────────────────┤
│ OPTIMIZE │ MiMo-V2.5-Pro reasoning generates optimal │
│ │ capital allocation with confidence scores │
├──────────────┼──────────────────────────────────────────────┤
│ OUTPUT │ Strategy: positions, APY, risk, monthly │
│ │ income estimate, diversification score │
└──────────────┴──────────────────────────────────────────────┘
Key features:
- Risk-Adjusted APY — Not just raw APY. Accounts for smart contract risk, liquidity depth, and impermanent loss.
- Multi-Chain Diversification — Spreads capital across chains to reduce single-chain risk.
- Protocol Scoring — Each protocol scored on audits, TVL, age, and admin key risk.
- MiMo Reasoning — AI explains why each position was chosen, not just what.
- Monthly Income Projection — See estimated monthly returns before deploying capital.
# Clone & install
git clone https://github.com/dipaya60/mimo-defi-optimizer.git
cd mimo-defi-optimizer
pip install -r requirements.txt
cp .env.example .env # add your MiMo API key
# Scan all yield opportunities
python main.py scan
# Filter by chain
python main.py scan --chain arbitrum,optimism
# Filter by token
python main.py scan --token USDC,ETH
# Optimize strategy for $10,000 (medium risk)
python main.py optimize --capital 10000
# High risk, specific chain
python main.py optimize --capital 50000 --risk high --chain arbitrum
# Low risk, stablecoins only
python main.py optimize --capital 25000 --risk low --token USDC,USDT,DAI
# Protocol risk analysis
python main.py risk aave_v3 --chain ethereum
python main.py risk uniswap_v3 --chain arbitrum
# List all protocols
python main.py protocols
# Full demo
python main.py demodocker-compose up -d
docker-compose run mimo-defi optimize --capital 10000Each protocol is evaluated on 5 dimensions:
| Dimension | Weight | What It Measures |
|---|---|---|
| Smart Contract | 35% | Audit count, code complexity, exploit history |
| Liquidity | 20% | TVL depth, withdrawal capacity |
| Impermanent Loss | — | LP-specific: price divergence risk |
| Oracle | 20% | Price feed reliability, manipulation vectors |
| Admin Keys | 25% | Multisig setup, upgrade risk, timelock |
Risk levels: 🟢 LOW (0-25) · 🟡 MEDIUM (26-50) · 🟠 HIGH (51-75) · 🔴 CRITICAL (76-100)
mimo-defi-optimizer/
├── src/
│ ├── client.py # MiMo API client (async, retry)
│ ├── config.py # Configuration
│ │
│ ├── optimizer/
│ │ └── engine.py # Core yield optimization engine
│ │
│ ├── protocols/
│ │ └── registry.py # 10 DeFi protocol database
│ │
│ ├── risk/
│ │ └── analyzer.py # 5-dimension risk analyzer
│ │
│ └── utils/
│ └── logger.py # Structured logging
│
├── main.py # CLI entry (Rich-powered)
├── Dockerfile
├── docker-compose.yml
└── .env.example
- Reasoning — Explains why each yield position is optimal, not just what to do
- Risk Assessment — Evaluates multi-dimensional risk across smart contract, liquidity, and oracle vectors
- Structured Output — Reliable JSON strategies for programmatic execution
- Cost Efficiency — 100T program makes heavy daily rebalancing accessible
- 10 DeFi protocol registry
- Multi-chain yield scanning (6 chains)
- Risk-adjusted APY optimization
- 5-dimension risk analyzer
- CLI + Docker deployment
- Real-time APY feeds (DeFiLlama API)
- Auto-rebalancing bot
- Telegram alerts for yield changes
- Historical yield backtesting
- Gas optimization (batch transactions)
MIT — see LICENSE