Commit Graph

11 Commits

Author SHA1 Message Date
ekzyis c2e3ce783b Fix market form flash 2024-09-11 12:42:06 +02:00
ekzyis 5d5c91399f Rename vars and add comments 2024-09-10 22:50:19 +02:00
ekzyis ecee2f2a46 Load chart data from db 2024-09-09 01:58:09 +02:00
ekzyis 00ee710246 Show line chart with sample data 2024-09-09 00:47:42 +02:00
ekzyis 9df7ce8338 Fix missing formatting 2024-09-05 23:11:29 +02:00
ekzyis 9296bd5866 Remove cite=ekzyis from blockquote 2024-09-05 23:07:44 +02:00
ekzyis 9417e28076 Fix market description 2024-08-26 16:26:54 -05:00
ekzyis 215a9fb3b6 Show quantity of user shares 2024-08-26 06:15:33 -05:00
ekzyis df7726e313 Update market form on input change 2024-08-26 05:50:09 -05:00
ekzyis bd7b2715bd Calculate probabilities using LMSR 2024-08-25 00:48:03 -05:00
ekzyis 845157c954 Add market form + page
* market form with question, description and end date
* markets cost 1k sats
* a goroutine polls pending invoices from the db and checks LND for their status
* markets are listed on front page (after paid)
* market page contains buttons to bet yes or no
* users have names now

TODO:
* show correct market percentage
* show how percentage changed over time in chart
* validate end date
* implement betting / order form
2024-08-24 02:35:15 -05:00