hackquest logo

Weekly Prize Pool Smart Contract

A simple Ethereum smart contract for a weekly prize pool lottery where users enter by sending Ether, and a winner is selected once every week to receive the entire prize pool.

説明

📝 Project Description — Weekly Prize Pool Lottery

Weekly Prize Pool is a lightweight Ethereum smart contract designed to gamify savings, participation, or engagement through a recurring, decentralized lottery system. Anyone can enter by sending ETH, and once per week, a randomly selected participant receives the entire prize pool.

This system promotes fair participation and transparency without the need for off-chain infrastructure, using Ethereum’s built-in beacon chain randomness (block.prevrandao) post-merge.


🎯 Key Features

  • Open Participation: Anyone can join the pool by sending ETH — no whitelist or access control required.

  • Weekly Rounds: The lottery resets every 7 days, enabling recurring engagement without manual tracking.

  • On-Chain Randomness: Uses block.prevrandao (introduced post-Paris hard fork) to generate pseudo-random results.

  • Trustless Payouts: Winnings are automatically sent to the selected address — no third party or centralized claim process.

  • Self-Resetting: After each round, the contract clears all players and starts fresh, ensuring fairness across weeks.


🧠 Why This Project?

We wanted to build something simple, decentralized, and engaging — a contract that:

  • Incentivizes participation

  • Demonstrates real smart contract mechanics like randomness, time-based access, and ETH transfer

  • Has real-world potential as a base layer for community raffles, prize-linked savings, or Web3 engagement rewards.

No dependencies. No oracles. Just Solidity and the Ethereum blockchain.


🚀 Future Enhancements

If developed further, this project could evolve with:

  • Chainlink VRF integration for verifiable randomness

  • Automated draws using Chainlink Automation or Gelato

  • Token-gated entry or NFT-based rewards

  • Frontend interface for Web3 user interaction


ハッカソンの進行状況

STAGE 1 IDEATHON

テックスタック

Web3

資金調達の状況

NA

チームリーダー
SSohail
オープンソース
業界
Gaming