Back to Projects2022
Lottery Smart Contract
Overview
A non-custodial decentralized lottery protocol built on Ethereum. Winner selection relies on Chainlink Verifiable Random Function (VRF) to guarantee mathematical fairness without centralized manipulation.
Core Features
- Chainlink VRF Randomness: Verifiably tamper-proof on-chain random number generation.
- Gas Optimization: Clean Solidity assembly optimizations minimizing entry and settlement gas costs.
- Automated Payouts: Smart contract executes automated prize dispersal directly to the winning wallet upon draw completion.
- Security Audited: Thoroughly tested against reentrancy, frontrunning, and overflow vulnerabilities using Hardhat.
Impact & Results
Demonstrated 100% autonomous lottery cycles executed on testnets with verified randomness proofs on Etherscan.
