Commit Graph

134 Commits

Author SHA1 Message Date
jahooma
a902dfebca Fit long names on mobile 2021-12-24 16:29:24 -05:00
mantikoros
f48ae0170b
Sell bets (#12)
* sell bet

* dev mode

* single-pot no-refund payoff; bet selling

* Increase default fetch size 25 -> 99

* Fix about page numbering

* Don't flash no markets when loading on tag page.

* Change Title to use body font

* Make a bunch of predictions at once (#9)

* Set up a page to make bulk predictions

* Integrate preview into the same card

* List created predictions

* Make changes per James's comments

* Increase the starting balance (#11)

* Remove references to paying for our Mantic Dollars

* Update simulator to use new calculations

* Change simulator random to be evenly random again

* Sell bet UI

* Migrate contracts and bets script

* Add comment to script

* bets => trades; exclude sold bets

* change sale formula

* Change current value to uncapped sell value.

* Disable sell button while selling

* Update some 'bet' to 'trade'

Co-authored-by: Austin Chen <akrolsmir@gmail.com>
Co-authored-by: jahooma <jahooma@gmail.com>
2021-12-24 15:06:01 -06:00
jahooma
4b3b6436a0 Improve navbar styles. Create Page component with navbar and page structure. 2021-12-19 22:06:30 -06:00
jahooma
6efdf46bb3 Don't show "No markets found" when loading markets 2021-12-19 14:40:54 -06:00
jahooma
b87e751b2d Improve spacing on landing-page, about faq. 2021-12-18 23:44:08 -06:00
jahooma
77291956bc Display N/A instead of cancel 2021-12-18 18:37:37 -06:00
jahooma
86e323bf25 Fix collapse carrot positioning... 2021-12-18 18:11:40 -06:00
jahooma
5be7ce5f8f Standardize spacing across pages. 2021-12-18 17:42:06 -06:00
Austin Chen
1851b20f42 Fix /bets page 2021-12-18 02:37:26 -08:00
Austin Chen
802f376042 Add a message for empty markets and bets 2021-12-18 02:28:01 -08:00
Austin Chen
77e15e3aa8 Denormalize username to each contract 2021-12-17 23:27:29 -08:00
jahooma
112a42406e Add simple bets page 2021-12-17 17:40:20 -06:00
mantikoros
03a3df261c contract slugs 2021-12-17 17:16:42 -06:00
jahooma
1c4a834696 Bring back collapse animation by moving padding from card. 2021-12-16 22:27:22 -06:00
jahooma
ad2f080c6e Improve layout of bets card 2021-12-16 15:51:47 -06:00
mantikoros
985621982b bets wording 2021-12-16 15:35:19 -06:00
jahooma
06f1657a4c Stop link click propogation 2021-12-16 15:28:58 -06:00
jahooma
21d0eca49f Collapsable bets, with bet table collapsed by default 2021-12-16 15:22:00 -06:00
Austin Chen
aab735cd8b Fix UserPage alignment 2021-12-16 01:09:36 -08:00
Austin Chen
ec516ee41f Move bet payouts to the top right of the card 2021-12-16 01:03:41 -08:00
jahooma
5d2e81f982 Simplify card 2021-12-16 00:11:14 -06:00
jahooma
5565bc5455 Make list of contract's bets be a card. Underline contract question as a link. 2021-12-15 23:10:31 -06:00
jahooma
36591539d3 Sort bets reverse-chronologically. 2021-12-15 22:40:48 -06:00
jahooma
ea1e66bda1 Add bets section to contract page. 2021-12-15 22:30:24 -06:00
jahooma
fe9def453b Show total of active bets and their current value. Arrange unresolved markets first. 2021-12-15 21:04:44 -06:00
Austin Chen
09dba6ef1e Fix: Don't show "Resolved" on unresolved markets 2021-12-15 18:51:41 -08:00
jahooma
83b4cc38b3 Show just payout column for resolved markets, tweak calculation and resolved labels. 2021-12-15 20:28:40 -06:00
Austin Chen
87010c1924 Extract shared UserPage code 2021-12-15 18:16:08 -08:00
Austin Chen
64dde4f482 Link to UserPage with @username 2021-12-15 18:16:00 -08:00
Austin Chen
8e119a6338 Replace /contract/[id] with /[username]/[id] 2021-12-15 16:52:19 -08:00
jahooma
f32933f668 Bet calculation / UI updates 2021-12-15 17:27:02 -06:00
jahooma
e8f94f48e2 Update bet UI with market summary and computed columns 2021-12-15 16:58:38 -06:00
jahooma
a07d29b881 Switch to compact table of bets 2021-12-15 12:41:18 -06:00
jahooma
fda5013bf8 Simple bets list 2021-12-15 01:41:56 -06:00