AI-Driven Intelligent Yield Optimization on Monad Blockchain
Features • Architecture • Quick Start • Documentation • License
YieldFlow is an AI-powered yield optimization platform built on Monad blockchain. It automatically manages user funds across multiple DeFi protocols to maximize returns while minimizing risks through intelligent AI agents.
Competition: Rebel in Paradise AI Hackathon 2026
- AI-Driven Decisions: LangChain + LLM powered investment decisions
- Multi-Protocol Integration: Aave, Compound, Uniswap, Curve support
- Risk-Aware Optimization: Real-time risk assessment and alerts
- Monad Native: Leverage 10,000 TPS for instant rebalancing
- Transparent AI: Explainable investment decisions
- Non-Custodial: Users control their funds at all times
┌─────────────────────────────────────────────────────────┐
│ YieldFlow System │
├─────────────────────────────────────────────────────────┤
│ Frontend (React + wagmi) │
│ ├── Dashboard │
│ ├── Deposit/Withdraw │
│ └── Analytics │
├─────────────────────────────────────────────────────────┤
│ AI Agent Layer (LangChain + Python) │
│ ├── DataCollectorAgent │
│ ├── AnalysisAgent │
│ ├── DecisionAgent │
│ ├── ExecutionAgent │
│ └── MonitorAgent │
├─────────────────────────────────────────────────────────┤
│ Smart Contracts (Solidity) │
│ ├── YieldVault (ERC4626) │
│ ├── StrategyManager │
│ └── AgentController │
├─────────────────────────────────────────────────────────┤
│ Monad Blockchain (10,000 TPS) │
└─────────────────────────────────────────────────────────┘
- Node.js >= 18
- Python >= 3.10
- Git
# Clone the repository
git clone https://github.com/anbeime/agent-pay.git
cd agent-pay
# Install dependencies
npm install
# Install Python dependencies
pip install -r requirements.txt
# Copy environment variables
cp .env.example .envnpm run devpython src/agent/yieldflow_agent.pynpx hardhat compile
npx hardhat run scripts/deploy.js --network monadyieldflow/
├── src/
│ ├── frontend/ # React frontend
│ │ ├── App.jsx
│ │ ├── Dashboard.jsx
│ │ └── main.css
│ ├── agent/ # AI Agent
│ │ └── yieldflow_agent.py
│ └── contracts/ # Smart contracts
│ ├── YieldVault.sol
│ ├── StrategyManager.sol
│ └── AgentController.sol
├── docs/ # Documentation
├── tests/ # Test suite
├── scripts/ # Deploy scripts
└── output/ # Build output
- ERC4626 compliant vault
- Multi-strategy support
- Auto-rebalancing
- Yield distribution
- Strategy registration
- Allocation management
- Risk score tracking
- AI agent authorization
- Operation validation
- Safety limits
The AI Agent system consists of 5 collaborative agents:
- DataCollectorAgent: Gathers protocol data, prices, TVL
- AnalysisAgent: Calculates risk-adjusted yields, predicts trends
- DecisionAgent: Makes allocation decisions based on user profile
- ExecutionAgent: Executes on-chain with gas optimization
- MonitorAgent: 24/7 position monitoring and alerts
| Layer | Technology |
|---|---|
| Blockchain | Monad |
| Smart Contracts | Solidity, Hardhat, OpenZeppelin |
| AI Agent | LangChain, Zhipu GLM-4 |
| Frontend | React, wagmi, viem |
| Data | Zilliz Milvus |
MIT License - see LICENSE for details.
- Email: team@yieldflow.io
- GitHub: https://github.com/anbeime/agent-pay
- Discord: https://discord.gg/yieldflow
Built with ❤️ for Rebel in Paradise AI Hackathon 2026