Skip to content

Zaira111111/Crypto-Staking-DApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

131 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿฅฉ Crypto Staking DApp

A decentralized application that allows users to stake their ERC20 tokens and earn rewards over time.

๐Ÿš€ Features

  • Stake Tokens: Users can lock their tokens in the contract.
  • Earn Rewards: Get reward tokens based on the staking duration.
  • Unstake: Withdraw tokens along with the accumulated rewards.
  • Real-time Updates: Track your earnings in real-time.

๐Ÿ› ๏ธ Tech Stack

  • Smart Contracts: Solidity
  • Framework: Hardhat / Foundry
  • Frontend: React.js, Ethers.js
  • Tokens: ERC-20 Standard

๐Ÿ“œ Logic & Math

The rewards are calculated based on: Reward = (Staked Amount * Reward Rate * Time) / Scaling Factor

โš™๏ธ How to Run

  1. Install dependencies: npm install
  2. Compile contracts: npx hardhat compile
  3. Deploy: npx hardhat run scripts/deploy.js --network localhost

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •