A decentralized lottery smart contract built with Brownie and OpenZeppelin. Deployed on Sepolia Testnet.
This project is inspired by the smartcontract-lottery by freeCodeCamp using the VRF V2 Subscription Method.
How the lottery works?
- Admin will start the lottery.
- Users can enter lottery as a player by paying a certain amount of ETH, based on a USD entrance fee.
- The admin will then close/end the lottery manually.
- The lottery will then randomly select the winner and the total entrance funds will be automatically transferred to the winner's address.