Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raffle mode #20

Open
prusnak opened this issue Sep 22, 2023 · 2 comments
Open

Raffle mode #20

prusnak opened this issue Sep 22, 2023 · 2 comments

Comments

@prusnak
Copy link
Collaborator

prusnak commented Sep 22, 2023

There is a lnurld project that primarily functions as a basic lnurlp server, but it has a unique Raffle feature that caught my eye.

Here's how it works.

  1. The admin activates 'raffle mode' for a specific lnurlp account.
  2. Once activated, every time someone makes a payment using this lnurlp, they receive a success message like "Ticket ABCDEF." Here, 'ABCDEF' is an alphanumeric string derived from the preimage of the payment.
  3. The admin can access the raffle screen to:
  • Select winners at random by clicking the 'DRAW' button. Each time it's pressed, the 'ABCDEF' token and the corresponding payment preimage are displayed. This is usually shown on big screen so everyone in the room can see it. We show the preimage because some LN wallets might not display success messages in their transaction history/details, but many do show the preimage.
  • After the raffle concludes, admin can clear the database of all issued tickets. This is useful so admin can start a new raffle the other day.

We have a blast with this Raffle at our meetups, and it'd be awesome to see it integrated into LNbits!

P.S.: If you feel this might be beyond the scope of the lnurlp extension, please let me know. But considering a separate raffle extension would likely duplicate about 80% of what lnurlp already accomplishes, I thought it could be a good fit to add it directly to this one.

@dni
Copy link
Member

dni commented Sep 23, 2023

loving the idea!

i am on the fence, my gut says it should be its own extension.

@arbadacarbaYK
Copy link
Contributor

sounds like the Bets4Sats (https://github.com/oren-z0/bets4sats) Extension thats still not vetted

lnbits/lnbits-extensions#133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants