Commit Graph

141 Commits

Author SHA1 Message Date
jahooma
2b618be3ac Increase padding on contract page 2022-01-13 12:58:49 -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
jahooma
a04c978408 Keep page wide if showing resolve panel 2022-01-10 10:33:02 -06:00
Austin Chen
feca042e47
Use the generated OpenGraph card in all markets (#23)
* Run OpenGraph server on dev port 3001

* Cut '%' since frontend already passes it

* Use the generated card in markets

* Rename to ogCardProps

* Don't show creator avatar url, for now

* Remove bad comment
2022-01-10 02:05:24 -05:00
jahooma
4d0646a200 Add payout if MKT. Current value uses MKT payout. 2022-01-03 23:44:58 -06:00
Austin Chen
fb0e16d619
Add a closing date to Create Market (#10)
* Preview a slimmed-down version of /Create

* Rework dropdown to be on bottom

* Parse the close time as just before midnight

* Prevent invalid contracts from being created

* Prevent trading after contract has closed
2022-01-02 21:21:25 -08:00
mantikoros
cdf25ba659 contract page seo tags 2022-01-02 12:57:52 -06:00
jahooma
8c644da10d Update contract title with resolution or percent chance 2022-01-01 22:52:55 -06: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
5cbbb55dba Tweak spacing 2021-12-19 23:15:18 -06:00
jahooma
4b3b6436a0 Improve navbar styles. Create Page component with navbar and page structure. 2021-12-19 22:06:30 -06:00
jahooma
702c0af33e Rename Header to NavBar. Split profile menu and mantic logo out. 2021-12-19 21:12:12 -06:00
jahooma
ab2011609f Rename [slug] to [contractSlug] 2021-12-18 23:50:47 -06:00
jahooma
5be7ce5f8f Standardize spacing across pages. 2021-12-18 17:42:06 -06:00
mantikoros
03a3df261c contract slugs 2021-12-17 17:16:42 -06:00
Austin Chen
022caa4407 Revert to URLs without @ 2021-12-17 10:55:18 -08:00
mantikoros
01bb4e4156 fix UserPage access issues 2021-12-16 15:22:24 -06:00
jahooma
21d0eca49f Collapsable bets, with bet table collapsed by default 2021-12-16 15:22:00 -06:00
jahooma
9289ad1f37 Remove All bets section from contract page 2021-12-16 13:51:35 -06:00
mantikoros
4be9c3d80c SEO component 2021-12-16 12:40:23 -06:00
mantikoros
99637d913d add meta tags to contract 2021-12-16 12:21:16 -06:00
Austin Chen
070b5e55c1 Spacing & wording tweak 2021-12-16 02:50:32 -08:00
Austin Chen
5e980a7863 Fix ContractOverview layout 2021-12-16 01:39:16 -08:00
Austin Chen
6b5bf3cb35 Line up BetSection with graph 2021-12-16 01:32:52 -08:00
jahooma
eaa9651c82 Fix create market redirect 2021-12-16 01:00:35 -06:00
mantikoros
00f5fbcf93 contract: static props, useContractWithPreload 2021-12-16 00:36:51 -06:00
mantikoros
2a08f70a9f contractid: reenable stuff 2021-12-15 23:56:12 -06:00
jahooma
4fd3f03fd3 Prevent flash of 404 on user profile page. 2021-12-15 23:56:03 -06:00
mantikoros
318e22b97d test 2021-12-15 22:52:07 -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
mantikoros
c5286dfa87 test 2021-12-15 22:12:27 -06:00
mantikoros
09ad6a3fe0 test 2021-12-15 22:10:14 -06:00
mantikoros
3691ef81ed test ssr 2021-12-15 21:45:31 -06:00
mantikoros
5206121579 ContractPage: static paths blocking 2021-12-15 21:42:05 -06:00
mantikoros
fe0d666c2b test ssg 2021-12-15 21:24:11 -06:00
mantikoros
d59666e7e3 add meta tags to contract 2021-12-15 21:14:04 -06:00
Austin Chen
743616449f Prefix username URLs with @ 2021-12-15 18:26:38 -08:00
Austin Chen
87010c1924 Extract shared UserPage code 2021-12-15 18:16:08 -08:00
Austin Chen
9df78a4963 Support user profiles on /[username]
Currently all bets are also shown
2021-12-15 17:34:36 -08:00
Austin Chen
8e119a6338 Replace /contract/[id] with /[username]/[id] 2021-12-15 16:52:19 -08:00