A smart DeFi asset management platform built on Scaffold-ETH 2
AI Vault is a decentralized finance (DeFi) project built on Scaffold-ETH 2, designed to provide users with intelligent asset management services. The project uses AI agents to manage investment strategies and allocate funds to different DeFi protocols to generate returns.
- ๐ฐ Smart Vault Management: Share-based investment vaults based on ERC-4626 standard
- ๐ค AI Agent Control: AI agents automatically manage investment strategies and asset allocation
- ๐ Multi-protocol Support: Integrates mainstream DeFi protocols like Aave, Uniswap V2/V3
- ๐ ETH Support: Direct deposit and conversion support for ETH and WETH
- ๐ก๏ธ Security Assurance: Reentrancy attack protection, access control, and parameter validation
- ๐ Real-time Monitoring: Complete test suite and integration tests
โ๏ธ Built with NextJS, RainbowKit, Foundry, Wagmi, Viem and Typescript
- โ Contract Hot Reload: Frontend automatically adapts when you edit smart contracts
- ๐ช Custom Hooks: Collection of React hooks around wagmi
- ๐งฑ Components: Collection of common web3 components
- ๐ฅ Burner Wallet and Local Faucet: Quick testing of applications
- ๐ Wallet Provider Integration: Connect different wallet providers
Before starting, you need to install the following tools:
- Node (>= v20.18.3)
- Yarn (v1 or v2+)
- Git
- Foundry
To get started with Scaffold-ETH 2 and the AI Vault project, follow these steps:
git clone https://github.com/KamisAyaka/ai_vault.git
cd ai_vault
yarn installRun in the first terminal:
yarn chainThis command starts a local Ethereum network using Foundry. The network runs on your local machine and can be used for testing and development. You can customize the network configuration in packages/foundry/foundry.toml.
In the second terminal, deploy the AI Vault system:
# Deploy complete AI Vault system
yarn deploy --file DeployAIVault.s.sol
# Or deploy basic test contracts
yarn deployThis command deploys the AI Vault smart contracts to the local network. The contracts are located in packages/foundry/contracts and can be modified as needed. The yarn deploy command uses deployment scripts located in packages/foundry/script to deploy contracts to the network.
In the third terminal, start your NextJS application:
yarn startVisit your application: http://localhost:3000. You can use the Debug Contracts page to interact with your smart contracts. You can adjust application configuration in packages/nextjs/scaffold.config.ts.
To learn more about the technical details of AI Vault's system architecture, core components, workflow, etc., please check DEVELOPMENT_EN.md
Visit Scaffold-ETH 2 Documentation to learn more about development features and best practices.
This project is open source under the MIT license.
For questions or suggestions, please contact through:
- Submit Issues: GitHub Issues
- Discussion: GitHub Discussions
Note: This project is still under development, please conduct thorough testing before using in production.