Spark
Testnet

Streakchain

StreakChain is an onchain habit tracker on Monad testnet. I struggle to stick to a daily work habit, and it's easy to quietly give up when the only record of a streak lives in your own head. StreakChain solves this with two contracts: StreakChain.sol logs free daily check-ins as a public, timestamped, tamper-proof record tied to your wallet. StreakStake.sol goes further — you stake real MON on a streak goal, forfeit it if you miss a day, and get your stake back plus a bonus if you finish, funded entirely by other people's forfeited stakes. It's a self-funding commitment device: discipline is literally paid for by other people's lack of it. The app also has a public streak lookup (view anyone's streak with no wallet needed) and a daily task list where each completed task logs a real onchain check-in. StreakStake has a full Hardhat test suite (29 tests), including a dedicated reentrancy-attack test proving the payout logic is safe. This was my first time writing and deploying a smart contract — I learned Solidity, how to reason about contract security (checks-effects-interactions, why payouts must be capped), and why Monad's low gas/high throughput is what makes frequent small onchain writes like this actually practical.

Discussion

Sign in to comment on this project.

No comments yet. Be the first to share what you think.