Commit Graph

939 Commits

Author SHA1 Message Date
mantikoros
a0833b4764 filter out redemption bets 2022-03-09 23:23:43 -06:00
mantikoros
b550bbe07d formatMoney: handle minus zero 2022-03-09 23:17:26 -06:00
mantikoros
b81742cd02 cpmm ContractBetsTable display 2022-03-09 23:17:13 -06:00
mantikoros
3145966a3c share redemption 2022-03-09 11:35:21 -06:00
James Grugett
90888a2cc6 Include time param in tweet url, so image preview is re-fetched 2022-03-08 15:34:58 -06:00
mantikoros
ede0c0b397 turn on liquidity fee; turn off creator fee 2022-03-08 12:19:38 -06:00
mantikoros
d1b510c720 Merge branch 'main' into cpmm 2022-03-08 11:45:30 -06:00
mantikoros
1dfc108ae4 store initialProbability in contracts 2022-03-08 11:41:22 -06:00
mantikoros
82c5eb85d3 updateUserBalance: allow negative balances 2022-03-08 11:34:08 -06:00
mantikoros
4a0db10b20 use all bets for getFixedCancelPayouts 2022-03-08 11:32:03 -06:00
mantikoros
b05c4da0f2 liquidity fee 2022-03-07 17:49:55 -06:00
James Grugett
fe98a61e43 Fix leaderboard out of memory error with batchedWaitAll instead of Promise.all 2022-03-07 13:45:56 -08:00
James Grugett
ff92338873 Fix multi payout calculation! 2022-03-07 13:15:12 -08:00
Austin Chen
a32bb57167 Update about page 2022-03-07 10:40:53 -08:00
mantikoros
dd9f4ba81c create liquidity provision even if no ante bet 2022-03-07 12:02:00 -06:00
mantikoros
87747d8fcb liquidity label 2022-03-07 11:59:36 -06:00
mantikoros
5fe40786ca remove comment 2022-03-07 11:33:17 -06:00
mantikoros
14ee9735c7 Merge branch 'main' into cpmm 2022-03-07 11:30:26 -06:00
mantikoros
845aefa6a8 liquidity provision tracking 2022-03-07 11:29:58 -06:00
James Grugett
abd9be921f Allow paying users negative amounts on market resolve. 2022-03-06 01:03:06 -08:00
James Grugett
a8fd4c8014 Better fix the create market focus issues. Expand to 4 lines when you add many chars to a question. 2022-03-06 00:48:08 -08:00
James Grugett
d8681b043c Only autofocus question input if no question text and not focused. 2022-03-05 23:58:54 -08:00
James Grugett
4ee458d3f5 Align "See more..." right on mobile 2022-03-05 23:48:35 -08:00
James Grugett
d7d8fb94c4
Trim activity feed (#60)
* Trim activity feed: show only items from last 24 hours, remove contract description, shorter width.

* Preserve feed ordering based on initial fetch of bets

* Add see more button, description to explore items
2022-03-04 18:06:11 -06:00
mantikoros
9c5478d3d5 separate logic to payouts-dpm, payouts-fixed 2022-03-04 18:31:04 -05:00
James Grugett
e49b64ee9f Flex shrink 0 on bet panel container 2022-03-04 10:33:38 -08:00
mantikoros
a315f6d841 fix antes 2022-03-04 10:58:15 -05:00
James Grugett
cb9fa0ceb2 Daily active users & comments 2022-03-03 12:59:12 -08:00
mantikoros
ed9b20b5ad fast folds: add russia-ukraine 2022-03-03 13:57:59 -05:00
mantikoros
c53957c9b1 fix auto-refactor 2022-03-03 12:24:47 -05:00
mantikoros
660597f10b use deductFixedFees 2022-03-03 12:19:18 -05:00
mantikoros
a7e7fc0c90 getOutcomeProbabilityAfterBet 2022-03-03 12:06:24 -05:00
mantikoros
f40a65cc88 new bet: use calculateCpmmPurchase 2022-03-03 11:56:21 -05:00
mantikoros
f06ec7a170 calculate fixed payouts; bets list calculations 2022-03-03 11:40:10 -05:00
mantikoros
9b10be065e use correct contract type in scripts / functions 2022-03-03 11:03:20 -05:00
mantikoros
6852314feb delete markets cloud function 2022-03-03 11:02:59 -05:00
Austin Chen
b4f8fcf38e Show profit/loss in sale panel 2022-03-03 02:10:20 -08:00
Austin Chen
ef77779cec Format Tailwind classes with Prettier
Not sure why Husky hooks aren't enforcing this 🤷
2022-03-03 01:09:32 -08:00
Austin Chen
d9fb2c0557 Tweak padding 2022-03-03 01:07:21 -08:00
Austin Chen
c0ace53df2 Improve VisD & copy on landing page 2022-03-03 00:56:03 -08:00
Austin Chen
76c4cd6d68
Render timestamps client-side to fix timezone (#58)
* Render timestamps client-side to fix timezone

* Fix compilation error
2022-03-02 23:51:58 -08:00
mantikoros
89f020ffcc use new calculations 2022-03-03 00:32:33 -05:00
mantikoros
fdea1d5ba6 bet panel: use new calculations 2022-03-03 00:01:53 -05:00
mantikoros
61f30d4ab9 mechanism-agnostic calculations 2022-03-03 00:01:39 -05:00
mantikoros
85e3d1124f use focus hook 2022-03-03 00:01:12 -05:00
mantikoros
42577b20a9 rename dpm calculations 2022-03-02 22:30:07 -05:00
mantikoros
e80926d201 rename 'calculate.ts' => 'calculate-dpm.ts' 2022-03-02 22:20:35 -05:00
James Grugett
c30962bf80 Create bet count and market count charts in our analytics 2022-03-02 17:52:41 -08:00
James Grugett
4d8af33c85 Invested value => Investment value 2022-03-02 15:48:38 -08:00
James Grugett
6285212a1e Update your trades to show total profit, invested value 2022-03-02 15:42:59 -08:00