Commit Graph

224 Commits

Author SHA1 Message Date
James Grugett
af6387bbf3
Stripe (#22)
* basic working payments

* Select funds amount and prettier funds button / dialog

* Add funds page and nav menu option

* Format funds amount. Use ghost button for back.

* Add mantic dollars description

* Improve styles of add funds page

* about styling

* change faq => about

* change default font to Courier

* header sign out menu item; remove user  card

* keep logo font

* fix header issue

* stripe webhook: handle repeat events

* Make add funds button a gradient

* add funds referer url

* Fix add funds page after merge

* Slight VisD tweaks

* Update add funds button position. Mantic => Manifold

* Remove Add funds menu option for now.

* Set up product ids and endpoint for stripe prod

* Swap back order in profile menu

Co-authored-by: mantikoros <sgrugett@gmail.com>
Co-authored-by: Austin Chen <akrolsmir@gmail.com>
2022-01-07 16:56:14 -06:00
mantikoros
1b69a34270 allow updating contract description 2022-01-07 13:29:23 -06:00
jahooma
e3800de2ad Update resolution panel to gray bg 2022-01-06 22:00:23 -06:00
James Grugett
85b5ee5cbc
Rename to Manifold Markets! (#19)
* Update logo and about page to manifold

* Change urls, titles / metatags, landing page
2022-01-06 12:48:30 -06:00
Austin Chen
95472c5faf Tweak bet panel UI 2022-01-06 01:49:41 -08:00
Austin Chen
4659cab18c Only "Advanced" label should look clickable 2022-01-06 01:48:27 -08:00
jahooma
477878a09f Right align tweet button 2022-01-05 23:02:39 -06:00
jahooma
75e9d419ee Fix payout calculation for correct bet in bet panel. 2022-01-05 17:03:30 -06:00
mantikoros
0b8ad76b0f global warming: warm up all cloud functions on client 2022-01-05 12:30:16 -06:00
jahooma
5eaf50612d Advanced metrics for bet panel 2022-01-05 12:23:44 -06:00
jahooma
3302cbddbd Move contract close time into contract details 2022-01-05 11:49:23 -06:00
jahooma
e20537bf49 Remove tags and date from card. 2022-01-05 01:06:30 -06:00
jahooma
1bc323d575 Hot markets! 🔥 2022-01-05 00:33:01 -06:00
jahooma
67007c5897 Make tweet button smaller 2022-01-04 16:47:56 -06:00
jahooma
6d97b82aee Use our own Tweet button instead of loading Twitter script 2022-01-04 16:34:07 -06:00
jahooma
596c6fe33d Show tags in contract details. 2022-01-04 16:09:03 -06:00
jahooma
73f1116b8f Add Tweet button to share market 2022-01-04 14:57:48 -06:00
jahooma
db1543ea71 Round bet amounts in feed 2022-01-04 09:55:34 -06:00
Austin Chen
583dc10e6a Don't prematurely show close times in feed 2022-01-03 23:41:52 -08:00
Austin Chen
07ce27f20b
Show activity feed on each market & allow comments on your bets (#18)
* Copy feed template from TailwindUI

* Show all bets in a feed-like manner

* Tweak design of individual trades

* Allow traders to comment on their bets

* Code cleanups

* Incorporate contract description into the feed

* Support description editing from contract feed

* Group together bets placed within 24h

* Fix build error

* Add a feed item for market resolution

* Add a feed item for markets that have closed

* Comment on a separate subcollection
2022-01-03 23:21:14 -08: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
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
James Grugett
bad7a2b543
Sort & query url params (#17)
* Sort query in progress

* Search and query url params!
2022-01-02 16:46:04 -06:00
jahooma
b375256e96 Reuse ResolutionOrChance component. Make smaller for card, larger for contract page. 2022-01-02 14:53:42 -06:00
jahooma
657b6b2763 Improve positioning of x% chance on mobile, break words in description. 2022-01-02 13:09:11 -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
a9e8b4c1e7 Attempt to fix external link in description 2022-01-01 23:52:32 -06:00
jahooma
50e3dc5cd0 Add Discord link as menu option! 2021-12-31 14:33:05 -06:00
jahooma
7d5e02a69c username => name on user page 2021-12-31 14:25:01 -06:00
jahooma
0b9b2396f1 Est. Max Payout => Shares in bet table 2021-12-31 14:13:06 -06:00
jahooma
96d5ea0437 Add sort by tag 2021-12-31 13:41:41 -06:00
jahooma
f1977f26ea Don't wrap external link with next/link 2021-12-31 13:41:41 -06:00
mantikoros
6eda71286c nav bar: dark background, no shadow 2021-12-31 13:31:41 -06:00
jahooma
41a011a9bb Increase size of creator name. Decrease spacing 2021-12-30 16:31:04 -06:00
jahooma
6a851fe86a Update resolve descriptions 2021-12-30 15:55:50 -06:00
James Grugett
f78920c912
Organize markets by creator!! (#14) 2021-12-30 14:03:32 -06:00
jahooma
527a8a8b09 White panels, medium shadows 2021-12-30 13:52:05 -05:00
jahooma
a5e4411075 Load all contracts, and filter to 99 client-side. 2021-12-30 13:35:29 -05: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
Austin Chen
3841e2a98f Change Title to use body font 2021-12-20 22:29:01 -08:00
jahooma
5cbbb55dba Tweak spacing 2021-12-19 23:15:18 -06:00
jahooma
918229c6ef Make navbar line up with content 2021-12-19 22:37:11 -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
mantikoros
28a2199ec7 fix header issue 2021-12-19 18:06:47 -06:00
mantikoros
bf211b91fe keep logo font 2021-12-19 18:02:42 -06:00