DecentraWin-EduChain
DecentraWin is a decentralized lottery application built on EduChain, allowing users to participate in a transparent and fair lottery system powered by smart contracts.
Description
DecentraWin: Decentralized Lottery DApp đď¸
DecentraWin is a decentralized lottery application built on EduChain, allowing users to participate in a transparent and fair lottery system powered by smart contracts.
đŻ Features
Become a Manager: Any user can opt to become the lottery manager, responsible for selecting the winner.
Join as a Player: Users can enter the lottery by contributing a small amount of EDU (e.g., 0.01 EDU).
Random Winner Selection: The smart contract selects a random winner from the participants, ensuring fairness.
Transparent History: Displays the latest winner on the frontend after every round.
Contract Details
Contract Address:
0x4088493200892f91DF9B9dc76440006D2167291f
Network: EduChain Testnet
Deployment
Transaction Hash: Link
Coin Used: EDU
đ How It Works
Manager Setup:
Any user can become the manager by clicking the "Become Manager" button.
The manager has the exclusive right to pick a winner.
Joining the Lottery:
Players enter the lottery by sending 0.01 EDU through the "Join as Player" button.
Each player's address is stored in the contract.
Selecting a Winner:
The manager triggers the "Pick Winner" button to randomly select a winner.
The contract transfers the entire prize pool to the winner.
The winner's address is displayed in the DApp interface.
⨠User Roles
Manager:
Becomes the lottery manager.
Can pick a winner.
Limited to one manager per round.
Players:
Join the lottery with 0.01 EDU.
Can win the entire prize pool.