A decentralized application that allows users to stake their ERC20 tokens and earn rewards over time.
- 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.
- Smart Contracts: Solidity
- Framework: Hardhat / Foundry
- Frontend: React.js, Ethers.js
- Tokens: ERC-20 Standard
The rewards are calculated based on:
Reward = (Staked Amount * Reward Rate * Time) / Scaling Factor
- Install dependencies:
npm install - Compile contracts:
npx hardhat compile - Deploy:
npx hardhat run scripts/deploy.js --network localhost