Skip to content

ibrahimjspy/yield-farming-dashboard

Repository files navigation

Yield Farming Dashboard

A modern DeFi dashboard for tracking and managing your yield farming positions across top protocols like Compound (with support for Aave, Yearn, and more). Connect your wallet, view your APYs, supplied balances, and compare protocols—all with live blockchain data.

Features

  • Live APY/Interest rates from Compound (Aave/Yearn coming soon)
  • Wallet connect (MetaMask) and network switch (Mainnet, Goerli, Sepolia)
  • User balances: See what you’ve supplied in each protocol
  • Estimated and realized yield
  • Deposit/Withdraw (coming soon)
  • Beautiful dashboard UI with protocol badges, logos, and dark mode
  • Historic APY charts via DeFiLlama (if available)
  • Responsive & mobile-friendly

Demo

screenshot Sample: Compound cDAI/cUSDC with live APY and wallet balances

Quick Start

1. Clone the Repo

git clone https://github.com/ibrahimspy/yield-farming-dashboard.git
cd yield-farming-dashboard

2. Install Dependencies

npm install
# or
yarn install

3. Set up ABIs

4. Run Locally

npm run dev
# or
yarn dev

Then open http://localhost:3000 in your browser.

Usage

  • Connect Wallet (MetaMask)
  • Switch Network as needed (Mainnet recommended for real data)
  • View your supplied balances and live APYs
  • See historic APY charts for each supported asset

Project Structure

src/
  abis/           # ABI JSON files (cToken.json, etc.)
  components/     # UI components (ProtocolCard, WalletConnect, ApyChart, etc.)
  context/        # React context for wallet/network
  hooks/          # Custom React hooks (useCompound, useApyHistory, etc.)
  pages/          # Next.js pages (index.tsx)

Data Sources

  • Live APY & balances: Fetched directly from Compound smart contracts (via ethers.js)
  • Historic APY: DeFiLlama API (https://yields.llama.fi/chart/compound/ethereum/DAI etc.)

Roadmap

  • Compound dashboard with wallet connect & APY
  • Historic APY charts (DeFiLlama)
  • Aave & Yearn integration
  • Deposit/Withdraw modal (supply/redeem)
  • Risk badges & protocol filters
  • More analytics (total supplied, earnings projections, multi-wallet)
  • Mobile optimization

Contributing

PRs and suggestions welcome! If you want to add new protocols or chart types, check out the /hooks and /components folders.

License

MIT


Enjoy farming safely! Made with ❤️ by M Ibrahim and the DeFi builder community.

About

Track and manage your yield farming positions across Compound (Aave/Yearn coming soon).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published