Commit Graph

8 Commits

Author SHA1 Message Date
ekzyis e868f91f84 Show form errors 2024-09-11 12:26:15 +02:00
ekzyis b7a24b48fd Show pYes and volume in market row 2024-09-10 23:41:55 +02:00
ekzyis 03689add7e Rename type MarketPoint to Point 2024-09-10 22:32:45 +02:00
ekzyis ecee2f2a46 Load chart data from db 2024-09-09 01:58:09 +02: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
ekzyis 9a92444eee Add session middleware 2024-07-12 15:30:50 +02:00