WinLoot
A fair, transparent, and decentralized lottery system built on the Base blockchain, enabling trustless gaming with guaranteed payouts.
Project links
About this project
Why are you participating for Based India?
Although I may not be based in India, my participation reflects my appreciation for India's rapidly growing tech ecosystem and its vibrant blockchain community. India has emerged as a major hub for blockchain innovation, with increasing adoption and experimentation in decentralized finance (DeFi) and Web3. This project aligns with India's vision for transparency, financial inclusion, and trustless systems, and I believe it can contribute to empowering communities and developers within the region.
What challenges are you focusing on?
The key challenge we’re addressing is the lack of trust in traditional lotteries and gambling systems. In many communities, particularly those with limited access to transparent financial services, people often face challenges of fraud, opaque operations, and centralization in lottery systems.
How does your submission address this challenge?
Our decentralized lottery system leverages the Base blockchain to create a fair, tamper-proof system where no central authority controls the lottery outcome. All transactions, entries, and winners are publicly verifiable on the blockchain, which fosters trust and transparency. The smart contract automates the process, ensuring that the prize pool is distributed without any manual intervention. By providing an open, permissionless lottery system, we enable individuals from any community to participate in a fair and secure game.
Challenges we ran into
One of the main challenges was integrating the randomness generation for selecting the lottery winner. Generating random numbers in a decentralized environment is non-trivial because on-chain randomness can be manipulated by miners or validators. We overcame this by combining blockchain parameters like block difficulty and timestamp in the smart contract to create a pseudo-random number. For a more secure approach, we considered using Chainlink VRF (Verifiable Random Function) for true randomness, but it required additional integration. On the frontend, the main challenge was managing the MetaMask connection to interact with the Base testnet. I worked through this by implementing Ethers.js to handle contract interactions effectively and ensuring seamless MetaMask integration.
About the founder
Building on Base from India