Buenos Tickets
Fair ticket sales: limited buyers will be randomly selected after the closing time.
Problem Statement
Booking tickets for popular shows is often highly competitive due to first-come, first-served systems, and it is also plagued by resale issues. To mitigate these problems, buyers are selected randomly. Users express their intention to purchase by paying the price until the deadline. After the deadline, buyers are randomly selected. Users who are not selected can receive a refund, and ticket sellers can collect the raised funds.
Solution
Technology StackSmart Contracts: Solidity, HardhatBlockchain: Base SepoliaRandomness: Pyth Network Entropy V2Payment: USDC (ERC-20 token)Frontend: HTML, CSS, JavaScript, ethers.jsAI : Cursor(with Sonnet 4.5), Gemini 3.0Partner TechnologiesPyth - Pyth Network Entropy is used to obtain tamper-proof random numbers. It utilizes the commit-reveal mechanism to generate unpredictable and unmanipulatable random numbers. If there are more buyers than the predetermined number, lottery winners are selected by shuffling using the generated random number.Hardhat - Hardhat is an indispensable tool that assists smart contract development.