← Back to home

MatesRaffle

MatesRaffle is the cryptographically fairest way to manage any kind of raffle you might be conducting.

Screenshots

MatesRaffle screenshot 1
MatesRaffle screenshot 2
MatesRaffle screenshot 3
MatesRaffle screenshot 4
MatesRaffle screenshot 5
MatesRaffle screenshot 6

Problem Statement

matesraffle.com aims to provide a good looking web app that allows for creation and management of raffle systems that source their randomness from public computers, that anyone can verify. matesraffle.com does this by utilising Verifiably Random numbers from Chainlink and Pyth Network, 2 separate oracle providers.By getting 2 separate oracle providers we get 2 completely random sources of information, this would mean that in order for someone to cheat this system, they would need to have control of all 2 oracle providers. This is tricky, but not impossible, I think we can add more fairness guarantees.From here, if we combine this with a commit/reveal hash scheme, we can ensure that both the raffle organiser, not the random number providers can collude to cheat raffles.All of this is abstracted away from users, as they're given a completely web2 look and feel with abstracted account/gasless transactions, powered by Biconomy.

Solution

NextJS front end, with tailwindcss, shadcn and magicuiSolidity for Smart Contracts (hardhat project)Graph Subgraph deployment for managing Data in the front endBiconomy for gasless transactionsChainlink VRF for 1 random data sourcePyth VRF for 1 random data sourceDeployed to Base Mainnet

Hackathon

ETHGlobal Bangkok

2024

Contributors