Giter Site home page Giter Site logo

megabyte0x / probably Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 1.23 MB

A lottery to onboard and educate the web2 community about web3.

Home Page: https://working-on-contracts-currently.com

Solidity 36.89% TypeScript 30.01% JavaScript 1.85% CSS 31.25%
defi ethers lottery-game nft web3 chainlink-vrf hardhat nextjs solidity typescript

probably's Introduction

This is soely for fun and learning purposes. I am not responsible for any damage caused by this script. Use at your own risk.

Probably

Overview

A lottery game where users can buy tickets for a fixed price and have the option to invest additional money in their tickets for a higher chance of winning the prize

The game uses a random number generation mechanism to determine the winner.

The probability of winning is calculated based on:

  • Investment ratio
  • Number of tickets sold
  • Total prize money

The game has a cap on the probability of winning to ensure fairness among players

The funds collected from ticket sales and investments are locked for a certain period of time

These funds are invested in a liquidity pool to generate returns

The returns generated from the liquidity pool are added to the prize money

The final pool amount is used to calculate the returns generated.

Check out the wiki for details.

probably's People

Contributors

megabyte0x avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

jsuyog

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.