Staking dApp Template
Launch a staking program your holders will actually use: stake a token (or the native coin), accrue rewards continuously, and withdraw or claim — with a dashboard showing TVL, estimated APR, your stake and pending rewards. The rewards-per-second staking contract is included as a clean, readable base.
Live preview
Features
- ✓Synthetix-style rewards-per-second accrual with a live pending-rewards counter
- ✓Stake / withdraw / claim, plus exit (withdraw all + claim)
- ✓TVL and estimated APR derived from the reward rate and total staked
- ✓Stake an ERC-20 or the native coin; reward in any ERC-20 or native coin
- ✓Owner-funded reward pool with a configurable reward rate
What's included
- ›Next.js app (App Router, TypeScript, Tailwind)
- ›StakingRewards.sol + Hardhat
- ›Setup wizard with in-browser deploy and a fund-rewards step
- ›Dockerfile + docker-compose
- ›README + .env workflow
Smart contracts included
Audited-base Solidity (OpenZeppelin), verifiable on-chain after deploy. Full source in the repo.
StakingRewards.solan example Synthetix-style staking pool: stake a token (or the native coin), accrue a fixed amount of reward per second split across all stakers, and withdraw or claim any time; the owner funds the reward pool and sets the rate. A clean foundation to adapt and audit — emissions scale with TVL and there's no schedule or cap, so it's a starting point, not a production yield design (OpenZeppelin SafeERC20 + ReentrancyGuard).
Real-time rewards and APR
A Synthetix-style staking contract distributes a fixed amount of reward per second across all stakers. The dashboard shows TVL, an estimated APR derived from the reward rate and total staked, your staked balance and live pending rewards.
Stake, withdraw, claim — and fund
Approve and stake in two clicks, withdraw any time, claim rewards, or exit (withdraw all + claim) in one. Owners fund the reward pool and set the reward rate. You can stake an ERC-20 or the chain's native coin, and reward in either.
Configurable and a clean foundation
Point it at any ERC-20 (or native) staking and reward asset, set the reward rate, and deploy with the included Hardhat scripts or the in-browser wizard. The contract ships as a readable example to adapt and audit — emissions scale with TVL and there's no schedule or cap. Ships with a Dockerfile.
Frequently asked questions
+What is a staking dApp template?
A ready-made staking website plus a rewards contract that lets users stake your token to earn rewards. This one includes the contract, a dashboard with APR/TVL, and stake/withdraw/claim flows.
+How is APR calculated?
The contract emits a fixed number of reward tokens per second across all stakers; the UI derives an estimated APR from the reward rate and total staked. You control the rate.
+Can the staking and reward tokens be different?
Yes. You can stake one token and reward another, or use the same token for both — it's a configuration choice at deploy time.
Ready to ship Staking / Yield dApp?
Full source, lifetime license, instant download. Pay with crypto or card.
Get it for $159