James Grugett
070fd7eda7
Tweak vercel cors
2022-07-06 23:41:57 -05:00
James Grugett
09decefb1a
Update user balance by new bet amount
2022-07-06 23:37:16 -05:00
James Grugett
d8202cb029
Remove console.logs
2022-07-06 23:33:34 -05:00
James Grugett
05a2ada858
Allow CORS exception for Vercel deployments
2022-07-06 23:33:06 -05:00
James Grugett
60f5f311f9
Support limit orders on numeric markets
2022-07-06 23:09:38 -05:00
James Grugett
a68c100df8
Add limit order switcher to mobile bet dialog
2022-07-06 22:32:25 -05:00
James Grugett
ada6df0fbb
Use floating equal to check if have shares
2022-07-06 22:27:38 -05:00
James Grugett
34b80074a3
Deduct user balance only on each fill. Store orderAmount of bet. Timestamp of fills.
2022-07-06 17:49:17 -05:00
James Grugett
a2a655063a
Merge branch 'main' into limit-orders
2022-07-06 15:36:16 -05:00
Ian Philips
54b4f97a84
Move timestamp to same line
2022-07-06 13:45:31 -06:00
Ian Philips
de20ee9fb9
Show tip notifications ( #623 )
...
* Show tip notifications
* Optimizing notifications for mobile
* Unused vars
* Move income reason logic to income notif
* Remove unnecessary icons
* Unused vars
2022-07-06 13:30:51 -06:00
Austin Chen
2d1e76eae8
When duplicating, add the original link in description
2022-07-06 10:39:19 -07:00
Ian Philips
434b8b9dbe
Just show first names to save space
2022-07-06 07:51:32 -06:00
Ian Philips
83a02c4b20
Small notifications ux improvements
2022-07-06 07:45:47 -06:00
Ian Philips
a6143c1abb
Always group income
2022-07-06 07:27:21 -06:00
Austin Chen
029021b351
Remove Categories from /create
2022-07-05 17:20:37 -07:00
Austin Chen
6cd8b04bd0
Nit: Fix spacing
2022-07-05 16:53:00 -07:00
Austin Chen
b71944607b
Simplify Tweet text
2022-07-05 16:48:59 -07:00
Austin Chen
cb25a7752d
Duplicate a question from '...' screen ( #622 )
...
* Duplicate a question from '...' screen
* Remove unused code
2022-07-05 16:26:58 -07:00
Ian Philips
3a6d28e2c2
Bold groups with recent chat activity ( #621 )
...
* Bold groups with recent chat activity
* Cleanup
* Cleanup
2022-07-05 17:18:37 -06:00
Sinclair Chen
270a5fc139
also filter by username when adding people
2022-07-05 14:34:16 -07:00
Marshall Polaris
5eca9def9d
Don't accidentally make meaningless zero bets ( #619 )
2022-07-05 14:01:57 -07:00
James Grugett
54779f93f9
Limit probability selector to 1-99
2022-07-05 16:39:57 -04:00
James Grugett
6cea9de8d3
Rename open bets to limit bets. Tweak payout calculation
2022-07-05 16:39:40 -04:00
Marshall Polaris
4d1c50a6cc
Redemption refactoring ( #614 )
...
* Refactor share redemption code into a few sensible functions
* Put very general share redemption code into common
2022-07-05 12:35:39 -07:00
Marshall Polaris
7f2bbdcb87
Allow people to sell all their shares ( #599 )
2022-07-05 12:26:51 -07:00
Marshall Polaris
f0fbdf1b42
Add a missing index ( #606 )
2022-07-05 12:26:13 -07:00
Marshall Polaris
a9e74e7111
Add functions framework as explicit dependency ( #613 )
2022-07-05 12:25:58 -07:00
Marshall Polaris
9bff858696
Fix up lint configuration, lint line endings ( #615 )
...
* Make sure we ignore all built code in common and functions
* Add lint for Unix line endings
* Fix line endings in withdraw-liquidity.ts
2022-07-05 12:25:44 -07:00
Ian Philips
b26648c1ce
Daily trading bonuses ( #618 )
...
* first commit, WIP
* Give trading bonuses & paginate notifications
* Move read & update into transaction
* Move request bonus logic to notifs icon
2022-07-05 11:29:26 -06:00
James Grugett
871271ecbb
Fix build error
2022-07-05 11:55:59 -04:00
James Grugett
f98bc17bc1
Cancel bet endpoint.
2022-07-05 11:50:15 -04:00
James Grugett
83557515ad
Render your open bets (unfilled limit orders)
2022-07-05 11:14:00 -04:00
Austin Chen
53b4a28944
Check in .env to git
2022-07-04 16:21:59 -07:00
Austin Chen
c39e3aedfa
Also send .env file when deploy functions
2022-07-04 16:04:05 -07:00
Sinclair Chen
af2b148b34
show names on admin user table
2022-07-04 13:25:44 -07:00
Ian Philips
790fdad1e3
Display refered by publicly
2022-07-04 09:18:01 -06:00
Ian Philips
22f917e250
Avatar sizes to 24, size 20 is broken
2022-07-04 08:32:51 -06:00
Ian Philips
e712ad8289
Allow users to choose who referred them ( #611 )
...
* Allow users to choose who referred them
* Refactor
* Rewording
* Match list styles
* Match empty text styles
2022-07-04 07:49:41 -06:00
mantikoros
d78bbcb3df
fix navbar tracking
2022-07-03 23:43:18 -04:00
James Grugett
68abee86fb
Simpler switching between bet & limit bet.
2022-07-03 23:42:49 -04:00
James Grugett
e88e7a604a
Listen for unfilled bets in bet panel. Calculate how the probability moves based on open limit orders.
2022-07-03 23:28:32 -04:00
Austin Chen
579dcd81dc
Update env config template
2022-07-03 16:46:45 -07:00
Austin Chen
9839b7b5a4
Allow customizing starting balance & antes
2022-07-03 16:46:15 -07:00
James Grugett
71401c4482
Some cleanup
2022-07-03 18:17:40 -04:00
James Grugett
3d4f993998
Merge branch 'main' into limit-orders
2022-07-03 15:57:09 -04:00
James Grugett
8fdc44f7f3
Switch to firebase dev before serving firebase emulators
2022-07-03 15:37:24 -04:00
Pico2x
960f8a1b3d
Toggle weekly leaderboard and daily/weekly/alltime portfolio graph ( #616 )
...
* Toggle weekly leaderboard and daily/weekly/alltime portfolio graph
* Formatmoney for tooltip value
2022-07-03 14:18:12 -05:00
Marshall Polaris
7dea9cbfa8
Use getAll
Firestore technology to improve some code ( #612 )
2022-07-02 16:24:03 -07:00
Marshall Polaris
90d7f55c6d
Fix backup DB job to actually backup most things, refactor ( #605 )
...
* Make backup manually invokable and thereby testable
* Add a shitload of missing stuff to our backups
* Also backup follows as per James
2022-07-02 13:27:06 -07:00