๐ค AI Agent (YieldBot)
The AI agent, called YieldBot, is a plugin built using ElizaOS that recommends optimal DeFi strategies based on market conditions and user risk preference. It runs off-chain and powers the strategy selection logic for the vaults.
๐ง Core Functionality
-
Market Analysis
-
Uses CoinGecko to fetch 7-day and 25-day price trends.
-
Detects whether the market is trending bullish or bearish.
-
Yield Pool Discovery
-
Fetches current APYs from DeFiLlama:
- Aave (Low Risk)
- Morpho Blue (High Risk)
-
Can be extended to Curve, Pendle, Compound, etc.
-
Strategy Recommendation
-
Based on market trend and user-selected risk (low/high),
-
Chooses the best performing pool in that category.
-
KV Storage
-
Saves the selected strategy in ElizaOS KV Store:
- Key:
"strategy:low"
or"strategy:high"
- Value: JSON with pool details and APY
- Key:
-
Automation
- Output is used by Chainlink Automation to call
allocateFunds()
on-chain.