-
-
Notifications
You must be signed in to change notification settings - Fork 30
Description
I forked this project to include an interesting functionality. You can check it out on
https://github.com/aplnx/lnme (Changes are in tor-support source codes)
It allows you to sell tickets. The interface pulls the price from Binance. I did it in the way that the price exchange is calculated on the server-side, then it is unlikely that the price could be hacked (I hope at least! :) ). It works like that:
1 - Page shows the price in USD for a ticket and the respective amount in sats. The ticket has a fixed price in USD.
2 - If you click to buy, it generates an lnbtc invoice.
3 - It waits until the invoice is settled.
4 - It shows a ticked code after payment confirmation.
@bumi : Would you mind taking a look? I think the code Golang skills are not very good but the functionality is demonstrated anyway. You may use tickets.html inside the examples directory instead of index.html.