abrosua / smart-lottery

Lottery smart contract, built with Brownie and deployed on Sepolia Testnet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Smart Lottery

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?

  1. Admin will start the lottery.
  2. Users can enter lottery as a player by paying a certain amount of ETH, based on a USD entrance fee.
  3. The admin will then close/end the lottery manually.
  4. The lottery will then randomly select the winner and the total entrance funds will be automatically transferred to the winner's address.

About

Lottery smart contract, built with Brownie and deployed on Sepolia Testnet

License:MIT License


Languages

Language:Solidity 55.4%Language:Python 44.6%