Skip to content

RohanSingh7761/VaultNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VaultNet - AI-Powered DeFi Trading Vaults

What is VaultNet?

VaultNet is a decentralized finance (DeFi) application that combines artificial intelligence with automated trading strategies on the Ethereum blockchain. The platform enables users to create and participate in AI-powered trading vaults without actively managing trades.

Core Functions

  1. Automated Trading Vaults

    • Create personalized trading vaults as smart contracts
    • Enable multi-user participation in successful strategies
    • Manage investments through a user-friendly interface
  2. AI-Driven Trading

    • Machine learning models analyze market data
    • Real-time price feeds via Pyth Network
    • Market sentiment analysis integration
  3. Risk Management

    • Customizable risk parameters
    • Automated stop-loss mechanisms
    • Position size management
    • Profit-taking strategies

User Benefits

  • Passive Investment: Automated trading without active management
  • Customization: Adjustable parameters for risk tolerance
  • Transparency: On-chain verification of all transactions
  • Risk Control: Built-in investment protection mechanisms
  • Community Participation: Join successful trading vaults

[... rest of the previous README content remains the same ...]

🌟 Features

  • Smart Contract Vaults: Create personalized trading vaults with customizable parameters
  • AI Trading Agent: Machine learning model that analyzes market data and sentiment
  • Real-time Oracle Integration: Live price feeds via Pyth Network
  • Multi-User Investment: Allow others to invest in your vault strategy
  • Risk Management: Configurable stop-loss and take-profit mechanisms
  • Sentiment Analysis: Market sentiment integration with adjustable influence

🏗️ Architecture

  • Frontend: React.js application with Web3 integration
  • Backend: Node.js server with GraphQL API
  • Blockchain: Solidity smart contracts on Ethereum (Sepolia testnet)
  • AI Model: TensorFlow-based trading model
  • Database: Hasura GraphQL engine

🔧 Technology Stack

  • Smart Contracts: Solidity ^0.8.20
  • Frontend: React, ethers.js, TailwindCSS
  • Backend: Node.js, Express
  • AI/ML: TensorFlow, Python
  • Oracle: Pyth Network
  • Development: Hardhat

📦 Installation

  1. Clone the repository:
git clone https://github.com/yourusername/VaultNet.git
cd VaultNet
  1. Install dependencies:
# Install frontend dependencies
cd frontend
npm install

# Install backend dependencies
cd ../backend
npm install

# Install smart contract dependencies
cd ../VaultNet
npm install
  1. Set up environment variables:
# Frontend (.env)
VITE_BACKEND_URL=http://localhost:3000
VITE_HASURA_ENDPOINT=your_hasura_endpoint

# Backend (.env)
AI_MODEL_URL=http://localhost:5000/api/predict
HASURA_ENDPOINT=your_hasura_endpoint

🚀 Running the Application

  1. Start the frontend:
cd frontend
npm run dev
  1. Start the backend:
cd backend
npm start

🔐 Smart Contract Deployment

  1. Deploy to Sepolia testnet:
cd VaultNet
npx hardhat run scripts/deploy.js --network sepolia
  1. Verify contract on Etherscan:
npx hardhat verify --network sepolia [CONTRACT_ADDRESS] [CONSTRUCTOR_ARGS]

📈 Trading Configuration

Vaults can be configured with the following parameters:

  • Risk Tolerance (1-10)
  • Sentiment Influence (0-100%)
  • Trading Style (conservative, moderate, aggressive)
  • Max Position Size (1-50%)
  • Stop Loss Percentage (1-20%)
  • Technical Weight
  • Sentiment Smoothing

🔗 Network Information

📄 License

This project is licensed under the MIT License.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a new Pull Request

📧 Contact

For questions and support, please open an issue in the GitHub repository.

About

ETHOnline 2025 Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •