Skip to content

SWEAAA/SmartYield

Repository files navigation

SmartYield AI

SmartYield AI is an advanced DeFi yield optimization platform that uses AI to automatically allocate funds across different Aptos blockchain pools for maximum returns.

Features

  • AI-Powered Yield Optimization: Automatically allocates funds to the highest-yielding DeFi pools
  • Real-time Predictions: Fetches yield predictions from Allora's predictive oracle API
  • Blockchain Integration: Interacts with Aptos blockchain for staking and unstaking operations
  • Transaction History: Keeps a detailed log of all AI decisions and transactions
  • User Control: Set your risk tolerance and preferences with detailed settings

Tech Stack

  • Frontend: Next.js with ShadCN UI and Tailwind CSS
  • Backend: Python FastAPI
  • Blockchain: Aptos Move smart contracts
  • Data Visualization: Recharts for interactive charts

Getting Started

Prerequisites

  • Node.js 18 or higher
  • Python 3.9 or higher
  • Aptos CLI (for smart contract deployment)

Installation

  1. Clone the repository
git clone https://github.com/yourusername/smartyield-ai.git
cd smartyield-ai
  1. Install frontend dependencies
npm install
  1. Install backend dependencies
cd backend
pip install -r requirements.txt
cd ..
  1. Run the development server
# In one terminal, start the frontend
npm run dev

# In another terminal, start the backend
cd backend
uvicorn main:app --reload
  1. Open your browser to http://localhost:3000

Smart Contract Deployment

  1. Build the Move package
cd move_contract
aptos move compile
  1. Deploy to Aptos testnet
aptos move publish --profile testnet

Usage

  1. Connect your Aptos wallet (e.g., Petra)
  2. Configure your risk tolerance and other settings
  3. Let the AI optimize your yield or manually trigger optimization
  4. Monitor performance on the dashboard

License

MIT

Acknowledgements

  • Allora Protocol for prediction data
  • Aptos Foundation for blockchain infrastructure

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages