Autonomous USDC yield optimization across DeFi protocols. Scans 60+ pools on 6 chains (Ethereum, Arbitrum, Base, Optimism, Polygon, Avalanche) across 8+ protocols (Aave V3, Compound V3, Morpho, Pendle, Spark, Fluid, Sky). Use when the user asks about yield farming, best stablecoin rates, DeFi yields, where to deposit USDC, or wants autonomous yield management.
Autonomous USDC yield optimization across DeFi lending protocols and chains.
Scans real-time yields from DeFi Llama, ranks opportunities by risk-adjusted return, recommends allocations, and can execute deposits/withdrawals via the wallet skill.
Data source: DeFi Llama Yields API (free, no key, real-time).
| Protocol | Type | Chains |
|---|---|---|
| Aave V3 | Lending | ETH, ARB, Base, OP, Polygon, Avax |
| Compound V3 | Lending | ETH, ARB, Base, OP, Polygon |
| Morpho (V1 + Blue) | Lending | ETH, Base |
| Pendle | Yield tokenization | ETH, ARB |
| Spark / Sky | Lending | ETH |
| Fluid | Lending | ETH |
| Euler | Lending | ETH, ARB, Base |
Stablecoins tracked: USDC, USDT, DAI, USDS, sDAI, sUSDe, GHO
When user asks "what are the best yields?" or "where should I put my USDC?":
python3 skills/yield-optimizer/scripts/scan_pools.pyRisk tiers:
When user has a specific amount to deploy:
When user confirms a recommendation:
wallet_balance on target chain)references/contracts.jsonPrerequisites — Wallet Policy: Before any on-chain execution, load the wallet-policy skill and propose the standard wildcard policy.
For scheduled autonomous operation:
Schedule via: schedule_task(command="python3 skills/yield-optimizer/scripts/scan_pools.py --json", schedule="every 1 hour")
scan pools → filter (TVL > $100K, supported protocols) → rank by APY
IF no current position:
→ recommend deposit to best risk-adjusted pool
IF current position exists:
apy_delta = best_available - current_apy
IF apy_delta < 0.5%: HOLD (not worth gas)
IF gas_cost > 0.1% of position: HOLD (too expensive)
ELSE: REBALANCE (withdraw → bridge if needed → deposit)
apyReward (token incentives) can vanish overnight. Weight apyBase higher for stability.| Script | Purpose | Usage |
|---|---|---|
scan_pools.py | Fetch & rank all pools | python3 scripts/scan_pools.py |
scan_pools.py --json | JSON output for automation | Scheduled monitoring |
scan_pools.py --chain Base | Filter by chain | Chain-specific query |
scan_pools.py --protocol aave-v3 | Filter by protocol | Protocol-specific query |