Onchain Raffle
A raffle type game using ERC721 and ERC20 enabling a unique economic mechanism.
Screenshots




Problem Statement
RulesA Ticket is your entry into this game. You can acquire one through minting. Each mint costs some ETH. Minting a ticket increases the price of the next ticket.The first person to mint starts a 7 day countdown. The countdown resets after every mint. If nobody else mints until the countdown runs out, the last person who minted wins the Big Prize.The twistOnce your ticket is no longer the last one, do not despair. The game just started. Tickets work in tandem with Tokens enabling a unique cryptoeconomic mechanism.Ticket holders have a powerful choice to make: Either hold your ticket, betting on the long term success of the game OR burn your Ticket for a fixed amount of Tokens.TokenomicsProceeds from each ticket mint are split in the following ways:Big Prize: The last minter claims this amount.Uni LP Fund: This amount funds the Uniswap liquidity Pool for Tokens.Ticket Holders Distribution: When the game ends, the remaining ticket holders share this amount equally.Team.
Solution
React with wagmi and rainbowkit for frontend, solidity backend containing 4 contractsvending machine, allowing users to mint & burn tickets, claim tokens and keeps the accountinguniswap Funder, which periodically funds the uniswap pairticket, the NFT contracttoken, the ERC20 contract
Hackathon
ETHGlobal Sydney
2024
Contributors
- tudorelu
1 contributions