Commit Graph

50 Commits

Author SHA1 Message Date
James Grugett
552e6e6c3a
Custom feed (#43)
* Show custom feed of contracts from folds your follow or have bet on.

* Add tw-elements UI library

* Add loading spinner while feed loads

* Switch from onSnapshot to our listenForValues, which doesn't set with partial cached values

* Change home tags to communities

* Remove tw-elements for now
2022-02-03 18:13:04 -06:00
mantikoros
f06ca8305c
Resolve prob (#41)
* rename MKT to PROB; show resolved probability; move format utilities to common

* ProbabilitySelector

* resolve to PROB

* prob and mkt labels
2022-01-30 15:51:30 -06:00
jahooma
f2c4d3e9c1 Change to white backgrounds for content. Remove page's margin, set individually. 2022-01-27 16:37:43 -06:00
mantikoros
1b5e33ca54 no ante selling 2022-01-19 16:36:55 -06:00
mantikoros
a16d35974f fix displayed sale amount 2022-01-15 16:51:09 -06:00
jahooma
1683a3842b Link to user from feed mentions. Show name instead of username in card. 2022-01-13 15:16:47 -06:00
mantikoros
9d5490cf9a
Switch to new dpm mechanism (#26)
* initial commit

* antes

* rename path, compute to contractPath, contractMetrics

* merge

* Include antes as bets; more calculations

* fees on estimated winnings

* mkt payout calculation

* contract: remove startPool, add phantomShares

* Merge branch 'main' into new-dpm

* dpm migration script

* my service account
2022-01-12 13:01:04 -06:00
mantikoros
b97a65cf2c refactor data structures, calculations to common directory 2022-01-10 15:07:57 -06:00
jahooma
829c8a4b75 Disallow selling after close time! Enforce no trading after close on server. 2022-01-10 10:33:02 -06:00
mantikoros
0b8ad76b0f global warming: warm up all cloud functions on client 2022-01-05 12:30:16 -06:00
mantikoros
7d5b4359f8 align sales price 2022-01-03 23:56:56 -06:00
jahooma
4d0646a200 Add payout if MKT. Current value uses MKT payout. 2022-01-03 23:44:58 -06:00
jahooma
24e873b6de Show "sold for" under sale price / payout column. Outcome label to new file 2022-01-03 12:56:02 -06:00
jahooma
f7d4926d22 Update to show sale price in column 2022-01-03 00:57:25 -06:00
mantikoros
907acec601
Mkt resolution 2: Enable MKT resolution (#16)
* new standard resolution; contract.totalBets; MKT resolution

* recalculate script

* enable resolve MKT

* different approach to resolve MKT

* comment out init

* Count payouts for bets with exluded sales

Co-authored-by: jahooma <jahooma@gmail.com>
2022-01-02 00:27:58 -06:00
jahooma
0b9b2396f1 Est. Max Payout => Shares in bet table 2021-12-31 14:13:06 -06:00
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