Skip to content

raghavgithub06/Yield-Farming-Defi

Repository files navigation

Yield-Farming-Defi

Yield Farming Defi allows users in lending or staking cryptocurrency coins or tokens to get rewards in the form of interest.

Project features 💡

  • User can buy mTether token.
  • User can stake tether token.
  • User can unstake tether token.
  • Admin can send reword token.
  • If user stake 10 token then he will get same amount of reward token back .
  • Connect with waller.

How to run 🏃 :

  • Run hardhat node
    npx hardhat node
    
  • Run test cases
    npx hardhat test
    
  • Deploy contract in local hardhat node
    npx hardhat run scripts/deploy.js --network localhost
    
  • Connect hardhat with metamask
  • Run Next.js frontend
    cd client
    npm run dev
    

Web3.js


Hardhat commands

npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
node scripts/deploy.js
npx hardhat help
npx hardhat run scripts/deploy.js --network <network name>

About

It is a repo that contains the code of Yield farming defi dapp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published