manifold/web
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
..
.husky Disable tsc linting 2021-12-18 15:18:58 -08:00
components Sell bets (#12) 2021-12-24 15:06:01 -06:00
hooks contract slugs 2021-12-17 17:16:42 -06:00
lib Sell bets (#12) 2021-12-24 15:06:01 -06:00
pages Sell bets (#12) 2021-12-24 15:06:01 -06:00
public Webp background image. Add white-background logo for future. 2021-12-12 23:36:02 -06:00
.eslintrc.js Turn off nextjs img lint rule 2021-12-10 18:18:43 -06:00
.gitignore Run a ts type checker in parallel with nextjs dev process 2021-12-19 15:26:59 -06:00
.prettierignore Run prettier 2021-12-09 15:23:21 -08:00
.prettierrc Prettier: no semi, spaces 2, single quote, trailing comma 2021-12-02 17:49:46 -06:00
next-env.d.ts upgrade nextjs version 2021-12-15 23:49:38 -06:00
next.config.js Change color scheme to be primary green (secondary purple, accent yellow). 2021-12-10 17:43:22 -06:00
package.json Run a ts type checker in parallel with nextjs dev process 2021-12-19 15:26:59 -06:00
postcss.config.js Prettier: no semi, spaces 2, single quote, trailing comma 2021-12-02 17:49:46 -06:00
README.md Finish porting simulator into React (#1) 2021-12-08 08:30:29 -08:00
tailwind.config.js Change Title to use body font 2021-12-20 22:29:01 -08:00
tsconfig.json Create Nextjs template app under web directory. 2021-11-30 22:20:13 -06:00
yarn.lock Switch to yarn 2021-12-19 16:08:25 -06:00

Mantic Markets web

Getting Started

  1. Run npm install
  2. Run npm run dev
  3. Your site will be available on http://localhost:3000

Formatting

Before committing, run npm run format to format your code.

Recommended: Use a Prettier editor integration to automatically format on save

Developer Experience TODOs

  • Automatically run prettier as code commit hook?
  • Prevent git pushing if there are Typescript errors?