A STX staking protocol with compound rewards on Stacks blockchain.
- 💎 Stake STX and earn rewards
- 📈 5% APY reward rate
- 🔄 Flexible stake/unstake anytime
- 💰 Claim rewards to wallet
- 🔁 Auto-compound - Reinvest rewards automatically
- 🚨 Emergency withdraw - Exit quickly if needed
- Frontend: Next.js 14, React 18, TypeScript
- Blockchain: Stacks Mainnet
- Smart Contract: Clarity
- Libraries: @stacks/connect, @stacks/transactions, @stacks/network
stake (amount)- Stake STX tokensunstake (amount)- Withdraw staked tokensclaim-rewards- Claim accumulated rewards to walletcompound-rewards- Reinvest rewards back into stakeemergency-withdraw- Withdraw all (forfeits pending rewards)
get-stake (staker)- Get user stake infocalculate-rewards (staker)- Calculate pending rewardsget-estimated-apy- Get current APY in basis pointsget-stake-duration (staker)- Get blocks since stake startedis-staking (staker)- Check if user has active stake
npm install
npm run devDeployed on Stacks Mainnet: SP3E0DQAHTXJHH5YT9TZCSBW013YXZB25QFDVXXWY.staking
MIT