James Grugett
3eb0bb1711
Throw error if sell conditions don't hold
2022-03-29 21:30:04 -05:00
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
Austin Chen
a40d593d32
Refactor useQueryAndSortParams into the SearchableGrid component
2022-03-29 08:09:46 -07:00
Austin Chen
419a3106e8
Revert "Format large money amounts with 'k' and 'm'"
...
This reverts commit b7d39eaafd
.
2022-03-25 15:54:15 -07:00
Austin Chen
b7d39eaafd
Format large money amounts with 'k' and 'm'
2022-03-25 15:31:46 -07:00
Sinclair Chen
6e387ef938
Keep FR answer panel open after betting ( #68 )
2022-03-25 13:33:57 -07:00
Sinclair Chen
50eb9bd4bd
Remove resize handles from input fields ( #67 )
2022-03-25 09:27:28 -07:00
Austin Chen
bad58652b8
Tweak copy
2022-03-24 22:53:12 -07:00
James Grugett
7d8a87615a
Embed market: dynamically adjust graph height
2022-03-24 12:03:17 -05:00
Austin Chen
b6281b0b56
Generate sitemap server-side
2022-03-24 09:52:13 -07:00
Austin Chen
467f7ded73
Update API link
2022-03-24 09:40:57 -07:00
Austin Chen
1a1dc97ec8
Generate a sitemap with next-sitemap
2022-03-24 09:28:36 -07:00
Austin Chen
1374309de3
Only show profitable trades in "Smartest Money"
2022-03-23 12:06:39 -07:00
James Grugett
7696dd84b5
Fix 'undefined' shares in DPM tooltip
2022-03-23 00:40:05 -05:00
James Grugett
8569a0362b
Fix not being able to go back on markets pages / communities
2022-03-23 00:34:04 -05:00
James Grugett
a967f7459d
Sort most traded by volume instead of pool size
2022-03-23 00:27:22 -05:00
James Grugett
364c6ad8e5
Show volume label for DPM contracts too
2022-03-23 00:23:40 -05:00
James Grugett
69e142e279
Make volume a non-optional field of contract
2022-03-23 00:09:47 -05:00
James Grugett
510e4400d3
Rename liquidity label to volume label
2022-03-23 00:02:47 -05:00
James Grugett
6b61d7209d
Compute volume for contracts. Show volume instead of liquidity for cpmm.
2022-03-22 23:49:15 -05:00
James Grugett
9c19966ef9
Show fewer graph ticks on mobile so they don't overlap. padding
2022-03-22 21:05:31 -05:00
Austin Chen
087e5f89fd
Revert "formatPercent: always show at least one sig fig"
...
This reverts commit ae0cb4fc8c
.
2022-03-22 16:53:23 -07:00
James Grugett
cbc01d8160
Fix analytics tabs on mobile
2022-03-22 18:26:06 -05:00
Austin Chen
c40c7af0b0
Condense analytics graphs using tabs
2022-03-22 15:53:06 -07:00
James Grugett
6d5a4d6e3f
Week-on-week retention graph
2022-03-22 16:24:26 -05:00
James Grugett
1a44124a59
Preserve new lines in answer feed item
2022-03-22 00:20:52 -05:00
James Grugett
cc0beb4ca4
DPM: label payout 'Estimated' in bet panel
2022-03-22 00:18:08 -05:00
James Grugett
a37ab956db
Hide answers in graph if M$ 0 is bet on it
2022-03-21 19:48:48 -05:00
James Grugett
28e3adcdff
Fix embed button on top of profile menu
2022-03-21 19:34:29 -05:00
James Grugett
09da7fcb7c
Add weekly active users chart. Put daily active first.
2022-03-21 17:42:12 -05:00
Austin Chen
a3067527ee
Fix crash when there aren't any bets
2022-03-21 15:19:42 -07:00
Austin Chen
a9cdeb46a2
Clean up button styling
2022-03-21 14:54:09 -07:00
James Grugett
033ff3e150
Implement copy for non-standard browsers. Fix flaky embed copy
2022-03-21 16:44:11 -05:00
James Grugett
cf2b54ab8d
Rearrange contract overview (-10 LOC!)
2022-03-21 16:19:08 -05:00
James Grugett
2eeaeff92d
Normal case Embed. Tweak gap so contract details fit in one row on more markets
2022-03-21 15:36:03 -05:00
James Grugett
4a617a4c07
Share embed button
2022-03-21 15:23:21 -05:00
James Grugett
0592909248
Subtract loan amount from investment
2022-03-21 01:29:53 -05:00
Austin Chen
03592f9c3e
Add sort by close time
2022-03-20 19:30:04 -07:00
Austin Chen
37b8cc9687
Show a top 5 leaderboard on resolved markets ( #66 )
...
* Show a top5 leaderboard on resolved markets
* Only show profitable traders
* Include sales in profits
* Copy Leaderboard styling
* Also show the top comment and trade
* Fix padding for solo bets
* Only show both comment & bet if they differ
2022-03-20 18:07:45 -07:00
James Grugett
7df69dda4d
Embedded market: Make only top section a link
2022-03-20 18:17:37 -05:00
James Grugett
cc15eb2044
Make embedded market link a clickable link
2022-03-20 18:12:33 -05:00
James Grugett
ee6f91a52f
Created embed page for analytics
2022-03-20 17:21:28 -05:00
James Grugett
087a2a1f8f
Monthly active users
2022-03-20 16:23:25 -05:00
James Grugett
48f5c28d75
Simplified contract embed
2022-03-20 16:05:16 -05:00
James Grugett
164f5fba06
Simple market embed page
2022-03-20 12:45:17 -05:00
James Grugett
7585a1a649
Include your bet on contracts in default feed
2022-03-19 22:37:57 -05:00
mantikoros
075804bb70
Revert "formatPercent: only show decimal to at most 2 places"
...
This reverts commit aebb4c5483
.
2022-03-19 12:32:22 -05:00
mantikoros
aebb4c5483
formatPercent: only show decimal to at most 2 places
2022-03-19 12:30:30 -05:00
James Grugett
a3c72214b8
Use sort linked in the url and not saved sort.
2022-03-19 11:34:24 -05:00
mantikoros
ae0cb4fc8c
formatPercent: always show at least one sig fig
2022-03-19 11:23:01 -05:00