Depth-Hoar / depth-yield-aggregator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yield Aggregator

This project uses CompoundV3 and AaveV3 to get the best yields of the two. Deposit WETH into this DAPP and get get the better APY you can deposit withdraw and rebalance.

Walk Through and Screencast Video

https://youtu.be/y_Cu5Ou7kvQ

Technology Stack & Tools

  • Solidity (Writing Smart Contracts & Tests)
  • Javascript (React & Testing)
  • Hardhat (Development Framework)
  • Ethers.js (Blockchain Interaction)
  • React.js (Frontend Framework)
  • MaterialUI (React Components)

Requirements For Initial Setup

Setting Up

  1. Create a .env file use example.env template to make it. You will also need to get an Alchemy API key and add that to the ENV file.

  2. Start a local node Hardhat is a blockchain development toolkit used to compile your solidity files, run tests and run a local blockchain node. Open a new terminal and start the node.

npm install, npx hardhat node
  1. Open a new terminal and deploy the smart contract in the localhost network
npx hardhat run --network localhost scripts/deploy.js
  1. Get WETH in your wallet. Running this script will turn 100 ETH to 100 WETH
npx hardhat run --network localhost scripts/getWETH.js
  1. The frontend is built using create-react-app To start the frontend run
cd frontend, npm install, npm start

Run tests

npx hardhat test

About


Languages

Language:JavaScript 53.9%Language:Solidity 39.2%Language:HTML 4.5%Language:CSS 2.4%