A minimal Clarity smart contract that lets users stake tokens and claim rewards.
This is designed for beginners who want to understand the basics of staking mechanisms in DeFi on the Stacks blockchain.
- Stake: Deposit your fungible tokens into the contract.
- Claim Reward: Receive a fixed 10% reward based on your total staked amount.
- Rewards are minted directly into your wallet.
The vision is to provide a clear, simple, and understandable foundation for building more complex staking systems:
- Show how to track staked balances.
- Demonstrate basic reward calculations.
- Serve as a starting point for DeFi learners.
Planned enhancements:
- Time-based rewards (higher rewards for longer stakes).
- Unstaking with optional penalties or cooldown periods.
- Dynamic reward rates (APY model).
- Multi-token staking support.
- Integration with a front-end staking dashboard.
ST1C5GR3FG54C50WAJXNNKCN6AF76H9N118K1D355.simple-defi-staking
