Skip to content

Repository files navigation

YieldMind — AI-Powered Yield Optimizer on Mantle

Mantle Network License: MIT

Let AI manage your yield. Always earning more.

Overview

YieldMind is an autonomous yield optimization protocol built on Mantle Network. Users deposit MNT into a smart contract vault. An AI agent monitors yield rates across Mantle-native assets — mETH and USDY — every hour and automatically rebalances the vault allocation to whichever asset offers the highest return. Every rebalance decision is recorded on-chain for full transparency.

Problem

DeFi yield rates change constantly. Most users either leave funds in a suboptimal asset or waste time manually monitoring and moving funds. There is no autonomous, transparent, on-chain solution for yield optimization on Mantle.

Solution

YieldMind deploys a three-layer architecture: a Solidity vault contract, an AI agent, and a React dashboard. The agent runs continuously, fetches live APY data, makes allocation decisions, and executes rebalances via the smart contract. Users simply deposit and let the AI do the rest.

How It Works

  1. User deposits MNT into the YieldVault smart contract.
  2. AI agent fetches mETH APY and USDY APY every hour.
  3. If the spread between assets exceeds 0.5%, agent calls rebalance() on the contract.
  4. Allocation switches automatically, and the decision is recorded on-chain with timestamp and reason.

Tech Stack

  • Smart Contract: Solidity, Hardhat, deployed on Mantle Testnet
  • AI Agent: Node.js, ethers.js, node-cron, axios
  • Frontend: Next.js, Tailwind CSS, wagmi, viem
  • Network: Mantle Testnet (chainId 5003)

Contract Details

Getting Started

  1. Clone the repo.
git clone <repo-url>
cd yieldmind
  1. Install dependencies in the root, agent, and frontend folders.
npm install
cd agent && npm install
cd ../frontend && npm install
cd ..
  1. Create a .env file in the project root.
PRIVATE_KEY=your_key
  1. Run the AI agent.
cd agent
node agent.js
  1. Run the frontend.
cd frontend
npm run dev
  1. Open the dashboard.
http://localhost:3000

Roadmap

  • Phase 1 (current): Vault contract + AI agent + dashboard on Mantle testnet
  • Phase 2: Direct integration with Mantle mETH and USDY token contracts for real fund movement
  • Phase 3: Multi-asset support, yield history charts, mobile app
  • Phase 4: Mainnet deployment with audited contracts

Live Demo

  • Frontend: https://yieldmind-cqenitsff-jamess-projects1.vercel.app
  • Contract: https://explorer.sepolia.mantle.xyz/address/0x1Fa60f8621908Bf44A75E0210AFdf51C7F4a9bf1

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages