manifold/web/components/answers
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
..
answer-bet-panel.tsx Sell shares panel (#69) 2022-03-29 14:56:56 -05:00
answer-item.tsx Cfmm (#64) 2022-03-15 17:27:51 -05:00
answer-resolve-panel.tsx Cfmm (#64) 2022-03-15 17:27:51 -05:00
answers-graph.tsx Embed market: dynamically adjust graph height 2022-03-24 12:03:17 -05:00
answers-panel.tsx Cfmm (#64) 2022-03-15 17:27:51 -05:00
create-answer-panel.tsx Sell shares panel (#69) 2022-03-29 14:56:56 -05:00