A decentralized application (DApp) that allows users to stake ERC-20 tokens and earn rewards over time. Built with Solidity, React, and Ethers.js, the DApp ensures secure token locking, reward distribution, and on-chain transparency.
๐ Click here to view the live demo
Users can:
- Stake tokens to earn periodic rewards
- Withdraw staked tokens and rewards anytime (or after a lock period)
- View real-time data on their staking status and rewards
This DApp is perfect for DeFi protocols looking to boost user engagement and token utility.
- Smart Contracts: Solidity (Staking Contract + ERC-20 Mock Token)
- Frontend: React.js, Vite, Ethers.js
- Blockchain Dev Tools: Hardhat
- Wallet Integration: MetaMask
- โ๏ธ ERC-20 Compatible: Works with any standard ERC-20 token
- ๐ Secure Token Staking: Tokens are locked in a staking contract
- ๐ฐ Reward Mechanism: Rewards are calculated per block or per second
- ๐ User Dashboard: View staked amount, reward earned, and withdrawable balance
- ๐งฎ Compound or Simple Rewards: Configurable logic based on your use case