Skip to content
forked from lnbits/events

Manage small bets among friends. Send the prize to the winner with ease.

License

Notifications You must be signed in to change notification settings

oren-z0/bets4sats

 
 

Repository files navigation

Bets4Sats - LNbits extension

For more about LNBits extension check this tutorial

Sell tickets for bets on competitions and send back rewards with ease

Bets4Sats alows you to make tickets for bets on competitions. Each user chooses an option to bet on, fills a lightning-address to receive the winning reward, and sends an amount of sats. When the competition ends, the app-manager selects the option that won, and all the rewards will be sent automatically from the wallet to the winners' lightning addresses, proportionally to the size of their bets. The app manager keeps 1% of the rewards. Lightning fees are deducted from the users.

Bets4Sats includes a shareable ticket scanner, which can be used to find the tickets in case of disputes.

Usage

  1. Create a new competition
    new competition

  2. Fill out the competition information:

    • competition name
    • wallet (normally there's only one)
    • competition information
    • banner url (optional)
    • choices
    • minimum bet and maximum bet for each ticket
    • ticket selling closing date (universal time clock)
    • number of tickets to sell

    Once the competition has been created, you can only modify the ticket closing date and the number of tickets. The other competition details cannot be modified!

    competition info

  3. Share the competition registration link
    competition ticket

    • ticket purchase example
      ticket example

    • QR code ticket, presented after invoice paid
      competition ticket

  4. Use the built-in ticket scanner to see all competition tickets and find them via the QR code
    ticket scanner

  5. In the main competitions table, scroll right and click the pen icon to edit a competition
    edit competition

  6. Choose a winner, automatically pay all the rewards. Failed payments will be mentioned in the tickets table, so you could see them when the ticket owners contact you. complete competition

Credit

Created by: Oren-Z0

Logo: Icons made by Freepik from www.flaticon.com.

This project was forked from Events by Ben Arc

About

Manage small bets among friends. Send the prize to the winner with ease.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 50.1%
  • Python 49.9%