manifold/web/lib/firebase
James Grugett ed5f69db7a
Sell shares panel (#69)
* Split BuyAmountInput out of AmountInput

* Buy and sell tabs. Compute some sell info

* In progress

* BuyPanel & SellPanel with banner above that shows current shares and toggle button

* Remove "Remaining balance"

* Bring back 'Place a trade'. Tweaks

* Sell shares cloud function.

* Sell all shares by default. Switch back to buy if sell all your shares.

* Cache your shares in local storage so sell banner doesn't flicker.

* Compute sale value of shares with binary search to keep k constant.

* Update bets table to show BUY or SELL

* Fixes from Stephen's review

* Don't allow selling more than max shares in cloud function

* Use modal for sell shares on desktop.

* Handle floating point precision in max shares you can sell.
2022-03-29 14:56:56 -05:00
..
answers.ts Free response (#47) 2022-02-17 17:00:19 -06:00
api-call.ts Sell shares panel (#69) 2022-03-29 14:56:56 -05:00
bets.ts Create bet count and market count charts in our analytics 2022-03-02 17:52:41 -08:00
comments.ts Disable submissions without eating the comment after 1h 2022-03-16 19:55:03 -07:00
contracts.ts Sort most traded by volume instead of pool size 2022-03-23 00:27:22 -05:00
folds.ts Prevent client error with > 10 tags on contract 2022-02-22 22:21:00 -06:00
init.ts Merge Manifold for Teams infra into main codebase (#61) 2022-03-08 18:43:30 -08:00
storage.ts User profile (#44) 2022-02-03 21:04:56 -06:00
users.ts Show a top 5 leaderboard on resolved markets (#66) 2022-03-20 18:07:45 -07:00
utils.ts 🏦 Per-market loans! (#57) 2022-03-01 21:31:48 -06:00