You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- Replace with logo -->
3
+
<!-- Replace with your logo -->
4
4
5
-
CentoAI is an AI-powered DeFi portfolio manager that optimizes yield farming by dynamically reallocating funds across top DeFi protocols. Built using **Coinbase AgentKit**, **Warden Protocol**, and **Lit Protocol**, CentoAI automates strategy execution securely on **Base** for maximum yield efficiency.
5
+
**CentoAI** is an AI-powered DeFi portfolio manager that optimizes yield farming and flash loan arbitrage across top DeFi protocols like **Aave**, **Compound**, and **Uniswap V3**. Built using **Coinbase AgentKit**, **Warden Protocol**, and deployed on **Base**, CentoAI automates fund management and strategy execution to maximize user returns.
6
6
7
7
---
8
8
9
9
## 🚀 Features
10
10
11
-
-**AI-Driven Yield Optimization**: Dynamically reallocates funds to the highest-yielding opportunities across DeFi protocols like Aave, Compound, and Uniswap.
12
-
-**On-Chain Automation**: Uses **Warden Protocol** to automate fund movements based on real-time APY data.
13
-
-**Secure Execution**: Leverages **Lit Protocol** for secure transaction signing and non-custodial key management.
11
+
-**AI-Driven Yield Optimization**: Dynamically reallocates funds to the highest-yielding opportunities across DeFi protocols.
12
+
-**Flash Loan Arbitrage**: Executes arbitrage strategies using **Balancer V2** flash loans for risk-free profits.
13
+
-**Multi-Protocol Integration**: Supports **Aave**, **Compound**, **Uniswap V3**, and **Balancer V2**.
14
+
-**On-Chain Automation**: Uses **Coinbase AgentKit** to automate fund movements and strategy execution.
15
+
-**User-Friendly Vaults**: Each user gets a personalized vault to deposit funds and set strategies.
14
16
-**Base Deployment**: Deployed on **Base** for low-cost, high-speed transactions.
15
-
-**User-Friendly Interface**: Built with **OnchainKit** for seamless wallet integration and portfolio management.
-Built with **Next.js**and **OnchainKit** for seamless wallet integration and portfolio visualization.
43
+
-Provides a user-friendly dashboard for monitoring portfolio performance and strategy execution.
43
44
44
-
4.**User Interface**:
45
-
- A dashboard displays portfolio performance, strategy configurations, and transaction history.
46
-
- Built with **React** and **OnchainKit** for seamless wallet integration.
45
+
### 3. **Backend**
46
+
-**Node.js** backend for handling off-chain computations and API integrations.
47
+
- Fetches real-time APY data from DeFi protocols and provides it to the AI agent.
48
+
49
+
### 4. **AI Agent**
50
+
- Analyzes yield opportunities and arbitrage strategies using machine learning models.
51
+
- Executes strategies securely using **Coinbase AgentKit** and **Warden Protocol**.
47
52
48
53
---
49
54
50
-
## 🏆 Sponsor Tracks
55
+
## 🔧 Workflows
51
56
52
-
CentoAI is designed to compete in the following **ETHGlobal Agentic Ethereum** tracks:
57
+
### 1. **User Onboarding**
58
+
- Users connect their wallets to the CentoAI platform.
59
+
- A personalized vault is deployed for the user using **VaultFactory.sol**.
60
+
- Users deposit ERC20 tokens (e.g., USDC, ETH) into their vault.
53
61
54
-
### 🟩 Core Tracks
55
-
1.**Coinbase Developer Platform**
56
-
-Most Innovative Use of AgentKit
57
-
-Best Combination of AgentKit + OnchainKit
58
-
- Viral Consumer App Award
59
-
- AgentKit Pool Prize
62
+
### 2. **AI-Driven Strategy Execution**
63
+
- The AI agent fetches real-time APY data from **Aave**, **Compound**, and **Uniswap V3**.
64
+
-It analyzes yield opportunities and identifies arbitrage opportunities using **Balancer V2** flash loans.
65
+
-The AI agent executes strategies such as:
66
+
-**Yield Farming**: Moves funds between protocols to maximize APY.
67
+
-**Flash Loan Arbitrage**: Executes risk-free arbitrage between DEXes.
60
68
61
-
2.**Base**
62
-
- Build an AI-Powered App on Base
69
+
### 3. **Portfolio Management**
70
+
- Users can monitor their portfolio performance, strategy execution, and transaction history through the dashboard.
71
+
- The dashboard provides insights into:
72
+
- Current APY across protocols.
73
+
- Profit/loss from arbitrage strategies.
74
+
- Historical performance of the portfolio.
63
75
64
-
3.**Lit Protocol**
65
-
- Best DeFAI Agent
66
-
- Most Creative Integration
67
-
- Pool Prize
76
+
---
68
77
69
-
4.**Warden Protocol**
70
-
- Best Use of Warden Protocol for On-Chain Automation
78
+
## 🧩 Smart Contracts
79
+
80
+
### 1. **LiquidityManager.sol**
81
+
- Manages liquidity across **Aave**, **Compound**, and **Uniswap V3**.
82
+
- Key Functions:
83
+
-`supplyLiquidityOnAave`: Supplies liquidity to Aave.
84
+
-`withdrawLiquidityFromCompound`: Withdraws liquidity from Compound.
85
+
-`swapOnUniswap`: Executes token swaps on Uniswap V3.
86
+
87
+
### 2. **Arbitrage.sol**
88
+
- Executes flash loan arbitrage strategies using **Balancer V2**.
89
+
- Key Functions:
90
+
-`executeTrade`: Initiates a flash loan and executes arbitrage.
91
+
-`receiveFlashLoan`: Callback function for flash loan execution.
92
+
93
+
### 3. **Vault.sol**
94
+
- Manages user balances and strategy execution.
95
+
- Key Functions:
96
+
-`depositERC20`: Deposits ERC20 tokens into the vault.
97
+
-`withdrawERC20`: Withdraws ERC20 tokens from the vault.
98
+
-`lendTokens`: Lends tokens to **Aave** or **Compound**.
99
+
100
+
### 4. **VaultFactory.sol**
101
+
- Deploys personalized vaults for users.
102
+
- Key Functions:
103
+
-`createVault`: Deploys a new vault for a user.
104
+
-`getVaultAddress`: Retrieves the vault address for a user.
71
105
72
106
---
73
107
74
-
## 🚨 Disclaimer
108
+
## 🛠️ Integration Details
109
+
110
+
### 1. **Coinbase AgentKit**
111
+
- Used for secure, programmatic wallet interactions.
112
+
- Enables the AI agent to execute on-chain actions (e.g., deposits, withdrawals, swaps).
113
+
114
+
### 2. **Warden Protocol**
115
+
- Used for automating on-chain actions and enforcing strategy rules.
116
+
- Ensures that strategies are executed only when predefined conditions are met.
117
+
118
+
### 3. **Base and Arbitrum**
119
+
- CentoAI is deployed on **Base** and **Arbitrum** for low-cost, high-speed transactions.
120
+
- Supports yield farming and arbitrage strategies on both networks.
121
+
122
+
---
75
123
76
-
CentoAI is a proof-of-concept project built for the ETHGlobal Agentic Ethereum hackathon. It is not audited and should not be used in production. Use at your own risk.
124
+
## 🏆 Sponsor Tracks
125
+
126
+
CentoAI is designed to compete in the following **ETHGlobal Agentic Ethereum** tracks:
127
+
128
+
### **Coinbase Developer Platform**
129
+
-**Most Innovative Use of AgentKit**: CentoAI uses AgentKit to automate complex DeFi strategies, abstracting away the complexity for users.
130
+
-**Best Combination of AgentKit + OnchainKit**: The frontend integrates **OnchainKit** for seamless wallet interactions and portfolio visualization.
131
+
-**Viral Consumer App Award**: CentoAI’s user-friendly interface and AI-driven strategies make it accessible to both DeFi experts and beginners.
132
+
-**AgentKit Pool Prize**: CentoAI is build with AgentKit in a meaningful way for users to interact with the DeFi ecosystem.
133
+
134
+
### **Base**
135
+
-**Build an AI-Powered App on Base**: CentoAI is deployed on **Base**, leveraging its low-cost, high-speed infrastructure for seamless DeFi operations.
136
+
137
+
### **Warden Protocol**
138
+
-**Agents with Best DeFi Skills**: CentoAI uses **Warden Protocol** to automate on-chain actions and enforce strategy rules (e.g., "only execute if APY > X%").
139
+
-**Intelligent Integrations**: CentoAI integrates **Warden Protocol** with an AI-driven decision engine to create a unique toolkit for DeFi portfolio management. The AI agent uses **Warden Protocol** to deploy smart contracts, exposing strategy execution functions (e.g., `executeYieldFarming`, `executeArbitrage`) as callable tools.
140
+
141
+
### **Arbitrum**
142
+
-**Most Innovative AI Agent Applications**: CentoAI combines yield farming and flash loan arbitrage to push the boundaries of DeFi automation.
77
143
78
144
---
79
145
@@ -118,16 +184,16 @@ contracts/
118
184
```
119
185
120
186
4. Deploy the contract to the Base Sepolia Testnet:
Foundry is used for testing the Arbitrage contract. To run the tests:
133
199
@@ -138,13 +204,40 @@ Foundry is used for testing the Arbitrage contract. To run the tests:
138
204
forge test
139
205
```
140
206
207
+
---
208
+
209
+
## 🚨 Disclaimer
210
+
211
+
CentoAI is a proof-of-concept project built forthe **ETHGlobal Agentic Ethereum** hackathon. It is not audited and should not be usedin production. Use at your own risk.
212
+
213
+
---
214
+
141
215
## 🤝 Contributing
216
+
142
217
Contributions are welcome! Please open an issue or submit a pull request.
143
218
219
+
---
220
+
144
221
## 📄 License
145
-
This project is licensed under the MIT License. See LICENSE for details.
222
+
223
+
This project is licensed under the **MIT License**. See [LICENSE](LICENSE) for details.
224
+
225
+
---
146
226
147
227
## 🙏 Acknowledgments
148
-
ETHGlobal for hosting the Agentic Ethereum hackathon.
149
228
150
-
Coinbase, Base, Lit Protocol, and Warden Protocol for their support and tooling.
229
+
- **ETHGlobal**for hosting the **Agentic Ethereum** hackathon.
230
+
- **Coinbase**, **Base**, **Warden Protocol**, and **Arbitrum**for their support and tooling.
231
+
232
+
---
233
+
234
+
## 📸 Visuals (Placeholder)
235
+
236
+
### **Dashboard Overview**
237
+
 <!-- Replace with actual dashboard screenshot -->
238
+
239
+
### **Vault Management**
240
+
 <!-- Replace with actual vault screenshot -->
241
+
242
+
### **Strategy Execution**
243
+
 <!-- Replace with actual strategy execution screenshot -->
0 commit comments