Skip to content

spandan114/Defi-Yield-Farming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yeild farming

Yeild farming : lending or staking your cryptocurrency coins or tokens to get rewards in the form of interest.

yieldfarming.mp4

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 reword token back .
  • Connect with waller.

Test cases

image

Tech stack & packages used 📦

package explain
Next.js For building frontend
solidity For writting smart contracts
tailwind css For building design
ether.js Web3 client (contract testing ).
web3.js Web3 client (Frontend Next.js).
Chai javascript testing framework.
react-toastify For Notification.
hardhat Ethereum development environment.
Redux For managing and centralizing application state.

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

cryptocurrency staking platform where you can buy, stake & un-Stake mock version of tether tokens to get rewards in the form interest.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published