manifold/web/components
mantikoros c183e00d47
Cfmm (#64)
* cpmm initial commit: common logic, cloud functions

* remove unnecessary property

* contract type

* rename 'calculate.ts' => 'calculate-dpm.ts'

* rename dpm calculations

* use focus hook

* mechanism-agnostic calculations

* bet panel: use new calculations

* use new calculations

* delete markets cloud function

* use correct contract type in scripts / functions

* calculate fixed payouts; bets list calculations

* new bet: use calculateCpmmPurchase

* getOutcomeProbabilityAfterBet

* use deductFixedFees

* fix auto-refactor

* fix antes

* separate logic to payouts-dpm, payouts-fixed

* liquidity provision tracking

* remove comment

* liquidity label

* create liquidity provision even if no ante bet

* liquidity fee

* use all bets for getFixedCancelPayouts

* updateUserBalance: allow negative balances

* store initialProbability in contracts

* turn on liquidity fee; turn off creator fee

* Include time param in tweet url, so image preview is re-fetched

* share redemption

* cpmm ContractBetsTable display

* formatMoney: handle minus zero

* filter out redemption bets

* track fees on contract and bets; change fee schedule for cpmm markets; only pay out creator fees at resolution

* small fixes

* small fixes

* Redeem shares pays back loans first

* Fix initial point on graph

* calculateCpmmPurchase: deduct creator fee

* Filter out redemption bets from feed

* set env to dev for user-testing purposes

* creator fees messaging

* new cfmm: k = y^(1-p) * n^p

* addCpmmLiquidity

* correct price function

* enable fees

* handle overflow

* liquidity provision tracking

* raise fees

* Fix merge error

* fix dpm free response payout for single outcome

* Fix DPM payout calculation

* Remove hardcoding as dev

Co-authored-by: James Grugett <jahooma@gmail.com>
2022-03-15 17:27:51 -05:00
..
analytics Daily active users & comments 2022-03-03 12:59:12 -08:00
answers Cfmm (#64) 2022-03-15 17:27:51 -05:00
feed Cfmm (#64) 2022-03-15 17:27:51 -05:00
layout New fold page UI with tabs (#37) 2022-01-25 14:47:25 -06:00
add-funds-button.tsx Automatically sort Tailwind classes with Prettier (#45) 2022-02-11 10:40:22 -08:00
advanced-panel.tsx Automatically sort Tailwind classes with Prettier (#45) 2022-02-11 10:40:22 -08:00
amount-input.tsx Fix insufficient balance error to use bet amount net loan 2022-03-02 14:02:44 -08:00
avatar.tsx Small avatars for nested feed items 2022-03-14 16:56:53 -05:00
bet-panel.tsx Cfmm (#64) 2022-03-15 17:27:51 -05:00
bet-row.tsx Cfmm (#64) 2022-03-15 17:27:51 -05:00
bets-list.tsx Cfmm (#64) 2022-03-15 17:27:51 -05:00
client-render.tsx Render timestamps client-side to fix timezone (#58) 2022-03-02 23:51:58 -08:00
confirmation-button.tsx for sales, show change in implied probability 2022-02-17 18:24:10 -06:00
contract-card.tsx Cfmm (#64) 2022-03-15 17:27:51 -05:00
contract-overview.tsx Cfmm (#64) 2022-03-15 17:27:51 -05:00
contract-prob-graph.tsx Cfmm (#64) 2022-03-15 17:27:51 -05:00
contracts-list.tsx Cfmm (#64) 2022-03-15 17:27:51 -05:00
create-fold-button.tsx Automatically sort Tailwind classes with Prettier (#45) 2022-02-11 10:40:22 -08:00
datetime-tooltip.tsx Render timestamps client-side to fix timezone (#58) 2022-03-02 23:51:58 -08:00
edit-fold-button.tsx Add lowercase tags when editing tags 2022-02-13 22:41:00 -06:00
fast-fold-following.tsx fast folds: add russia-ukraine 2022-03-03 13:57:59 -05:00
feed-create.tsx Enforce max question length, description length, and tag length. 2022-03-09 11:08:57 -06:00
fold-tag.tsx Automatically sort Tailwind classes with Prettier (#45) 2022-02-11 10:40:22 -08:00
follow-fold-button.tsx Listen to followed folds. Follow button retreives from local storage. 2022-02-20 23:12:35 -06:00
info-tooltip.tsx Switch to outlined icon 2022-01-16 02:14:21 -05:00
join-spans.tsx Don’t show negative values in feed for sales 2022-01-17 21:38:40 -06:00
leaderboard.tsx Automatically sort Tailwind classes with Prettier (#45) 2022-02-11 10:40:22 -08:00
linkify.tsx Don't include trailing !:,.; in links 2022-02-16 10:32:44 -08:00
loading-indicator.tsx Automatically sort Tailwind classes with Prettier (#45) 2022-02-11 10:40:22 -08:00
manifold-logo.tsx Merge Manifold for Teams infra into main codebase (#61) 2022-03-08 18:43:30 -08:00
menu.tsx Automatically sort Tailwind classes with Prettier (#45) 2022-02-11 10:40:22 -08:00
nav-bar.tsx Automatically sort Tailwind classes with Prettier (#45) 2022-02-11 10:40:22 -08:00
outcome-label.tsx Free response (#47) 2022-02-17 17:00:19 -06:00
page.tsx Automatically sort Tailwind classes with Prettier (#45) 2022-02-11 10:40:22 -08:00
probability-selector.tsx Resolve prob (#41) 2022-01-30 15:51:30 -06:00
profile-menu.tsx Merge Manifold for Teams infra into main codebase (#61) 2022-03-08 18:43:30 -08:00
resolution-panel.tsx Cfmm (#64) 2022-03-15 17:27:51 -05:00
SEO.tsx Update SEO for non-binary markets 2022-02-17 18:34:17 -06:00
site-link.tsx New, pretty user page (#48) 2022-02-17 17:16:58 -08:00
tags-input.tsx Automatically sort Tailwind classes with Prettier (#45) 2022-02-11 10:40:22 -08:00
tags-list.tsx Fast fold following (#51) 2022-02-19 17:17:36 -06:00
title.tsx Automatically sort Tailwind classes with Prettier (#45) 2022-02-11 10:40:22 -08:00
tweet-button.tsx Automatically sort Tailwind classes with Prettier (#45) 2022-02-11 10:40:22 -08:00
user-page.tsx New, pretty user page (#48) 2022-02-17 17:16:58 -08:00
yes-no-selector.tsx Implement resolving to multiple answers, weighted by probability 2022-02-20 01:26:33 -06:00