Commit Graph

321 Commits

Author SHA1 Message Date
ekzyis fe8c55815d Limit y to 0..1 2024-10-03 09:23:35 -05:00
ekzyis 1e9c33bc89 Colorize potential earn 2024-10-02 16:40:58 -05:00
ekzyis 1df8d90f90 Add loading to LNURL-auth 2024-10-02 15:24:22 -05:00
ekzyis a98cd36cb5 nostr login with NIP-07 (window.nostr) 2024-10-02 15:22:23 -05:00
ekzyis a8ea82ec5d Prettier user grid 2024-09-27 07:23:37 +02:00
ekzyis 2bdf74e57e Use text-reset if p=0.5 2024-09-11 12:59:45 +02:00
ekzyis 48bd8bc2b0 Fix new markets not shown 2024-09-11 12:51:07 +02:00
ekzyis c2e3ce783b Fix market form flash 2024-09-11 12:42:06 +02:00
ekzyis ab4238f2a4 Fix esbuild missing in dependencies 2024-09-11 12:34:45 +02:00
ekzyis 6e40ef6f54 Fix error order 2024-09-11 12:28:46 +02:00
ekzyis e868f91f84 Show form errors 2024-09-11 12:26:15 +02:00
ekzyis 5788d5b509 Allow users to edit their name 2024-09-11 11:30:25 +02:00
ekzyis 867971b20c Add margin-top to market form 2024-09-10 23:53:55 +02:00
ekzyis 6bf3b05407 Rename _tw-input.css to tw-input.css 2024-09-10 23:48:23 +02:00
ekzyis b7a24b48fd Show pYes and volume in market row 2024-09-10 23:41:55 +02:00
ekzyis 70b5659dc8 Format CSS file 2024-09-10 23:41:08 +02:00
ekzyis 5d5c91399f Rename vars and add comments 2024-09-10 22:50:19 +02:00
ekzyis 03689add7e Rename type MarketPoint to Point 2024-09-10 22:32:45 +02:00
ekzyis cb5132f2c1 Makefile updates
* add 'npm run build' as a build step
* add dev as PHONY target
* switch order of targets
2024-09-10 22:29:06 +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 bdc768cb27 Fix copy button flicker on poll 2024-09-09 00:47:10 +02:00
ekzyis ed9d6f30c4 Add TODOs 2024-09-09 00:35:15 +02:00
ekzyis 2e3e4f02b4 Use htmx.on 2024-09-05 23:33:23 +02:00
ekzyis 76bc50355a Define jQuery helper in head 2024-09-05 23:20:07 +02:00
ekzyis e4da49b215 Set min date 2024-09-05 23:12:34 +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 ce0084fc20 Add postgres functions for LMSR 2024-08-26 16:16:19 -05:00
ekzyis 74aa41d5f4 Add orders.created_at column 2024-08-26 16:15:51 -05:00
ekzyis 215a9fb3b6 Show quantity of user shares 2024-08-26 06:15:33 -05:00
ekzyis 5587aeb03a Fix query for lmsr.Q1 & lmsr.Q2 2024-08-26 05:57:31 -05:00
ekzyis 3075f12fc1 Fix lmsr_b since maximum possible loss was off 2024-08-26 05:50:09 -05:00
ekzyis 6b6bbbf621 Add 'expiry=' to 'invoice pending' log 2024-08-26 05:50:09 -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 d87b97d235 Move postgresql.conf into db/ 2024-08-25 00:45:52 -05:00
ekzyis 256dba2a46 Implement LMSR cost function 2024-08-25 00:45:14 -05:00
ekzyis 6c723b0304 Return 404 if market not paid 2024-08-24 22:30:04 -05:00
ekzyis 607e1007d0 Remove MATCHMAKING.md 2024-08-24 22:12:34 -05:00
ekzyis 3d1251cd4a Merge branch 'htmx-templ-rewrite' into develop 2024-08-24 22:09:46 -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 698cc5c368 Add min-height to #content 2024-08-11 04:56:54 -05:00
ekzyis 07648c30f6 Add postgresql to shell.nix 2024-08-08 03:08:24 -05:00
ekzyis e540b78994 Fix duplicate build steps 2024-08-08 01:39:32 -05:00
ekzyis 65e7adc7fa Add remote port forwarding command to hotreload.sh 2024-08-08 01:39:32 -05:00
ekzyis a2b717b336 Add shell.nix 2024-07-21 20:39:30 -05:00
ekzyis 139bb2e5b1 Remove unnecessary argument 2024-07-21 20:39:12 -05:00
ekzyis 9b8734f5a9 Add QR component 2024-07-15 12:55:48 +02:00