mantikoros
e2de257372
Simple dpm ( #46 )
...
* simpler payout mechanism; lower phantom ante to $1
* deductFees
* reduce phantom ante to 0.01
* PHANTOM_ANTE = 0.001
* payouts: pay back winner losses with fees
* simplify payouts
2022-02-12 19:19:17 -06:00
mantikoros
03f36cf954
User profile ( #44 )
...
* add id, userId to comment
* change user info cloud function and script; move cleanUsername to common
* change user info script
* fix rules
* add fund button: useLocation hook
* profile page
* merge
* profile stuff
* avatar uploading to storage bucket
* changeUserInfo: use transaction
* Styles for profile page
* Edit mode for profile, and more styles
Co-authored-by: James Grugett <jahooma@gmail.com>
2022-02-03 21:04:56 -06:00
mantikoros
63de359d22
lower creator fee to 4%
2022-02-03 20:49:04 -06:00
James Grugett
552e6e6c3a
Custom feed ( #43 )
...
* Show custom feed of contracts from folds your follow or have bet on.
* Add tw-elements UI library
* Add loading spinner while feed loads
* Switch from onSnapshot to our listenForValues, which doesn't set with partial cached values
* Change home tags to communities
* Remove tw-elements for now
2022-02-03 18:13:04 -06:00
mantikoros
4294481b5b
change fee structure
2022-02-03 16:59:59 -06:00
James Grugett
ca29a43da9
Calculate global leaderboard from contract bets
2022-02-01 21:30:43 -06:00
James Grugett
0eac8d9c5c
Yarn workspaces ( #42 )
...
* Try yarn workspaces
* Add versions to sub package.json files
2022-02-01 15:25:51 -06:00
James Grugett
b95f258763
Add package.json to common directory, and lodash dependency
2022-02-01 12:59:51 -06:00
James Grugett
7c50b55331
Match lowercase tags for folds
2022-02-01 12:29:14 -06:00
James Grugett
79c5472c11
Match tags with hash
2022-02-01 11:02:30 -06:00
James Grugett
4e1174a4dc
Option to disallow market creation from fold
2022-01-31 22:10:02 -06:00
James Grugett
6427e1bd06
Save tags unique and case-insensitive. Don't clear added tags on updating description.
2022-01-30 21:25:52 -06:00
mantikoros
f06ca8305c
Resolve prob ( #41 )
...
* rename MKT to PROB; show resolved probability; move format utilities to common
* ProbabilitySelector
* resolve to PROB
* prob and mkt labels
2022-01-30 15:51:30 -06:00
jahooma
9764a03189
Add create market to top of fold activity. Auto-adds the primary tag of the fold.
2022-01-27 12:45:35 -06:00
jahooma
ef8157025f
Compute fold follower count from cloud function.
2022-01-26 14:27:16 -06:00
James Grugett
8b9d0e5dba
New fold page UI with tabs ( #37 )
...
* Tabbed fold page
* Implement market, leaderboard tab views for fold. And edit dialog
* Add about field to Fold
2022-01-25 14:47:25 -06:00
jahooma
705d5cada7
Add lowercaseTags field to contracts. ante / closeTime non-optional in new contract code
2022-01-24 16:33:10 -06:00
jahooma
aa1022546d
Implement leaderboards for folds!
2022-01-22 17:59:50 -06:00
jahooma
4ba112df2e
Parse tags optionally including '#'
2022-01-21 18:07:11 -06:00
James Grugett
60f68b178d
Folds ( #34 )
...
* Fold type, fold page, query for fold contracts
* Tsconfig: target esnext, nounused locals: false
* Store tags in field on contract. Script to update contract tags
* Show tags on fold page
* Load all fold comments server-side to serve better feed
* Fix the annoying firebase already initialized error!
* Add links to /edit and /leaderboards for fold
* Page with list of folds
* UI for creating a fold
* Create a fold
* Edit fold page
2022-01-21 17:21:46 -06:00
mantikoros
1b5e33ca54
no ante selling
2022-01-19 16:36:55 -06:00
Austin Chen
78c461b26c
Show creator avatar in feed
2022-01-19 02:34:36 -05:00
mantikoros
4528615863
Private user ( #32 )
...
* PrivateUser
* createUser: create private user; detect multiple signups
* include user properties in private user
* script: create private users
* unsubscribing from market resolution emails
* track total deposits
2022-01-18 21:36:46 -06:00
mantikoros
908c8c03e6
Create user cloud function ( #31 )
...
* createUser cloud function; change User object
* initial commit
* listenForLogin: avoid race condition
* createUser: allow capital letters in username
* remove debugging
* leaderboard: empty url for undefined avatar image
2022-01-18 01:18:38 -06:00
jahooma
56c7e2597d
Schedule cloud function to update user metrics: totalPnL, creatorVolume
2022-01-17 15:39:34 -06:00
Austin Chen
7d7286b1c1
Denormalize the avatar URL on contract creation ( #29 )
2022-01-16 01:03:59 -05:00
jahooma
f6079e68d0
Choose random hot contracts from top 16 every 5 minutes.
2022-01-15 00:44:33 -06:00
mantikoros
a0be5b6394
calculateMoneyRatio
2022-01-15 00:11:27 -06:00
mantikoros
3fa2926559
create page design; require minimum ante; lower phantom ante amount; createContract checks
2022-01-14 17:39:17 -06:00
mantikoros
3805adff58
calculateMoneyRatio: use share value amount
2022-01-14 11:35:32 -06:00
mantikoros
6d536c4e16
change fee structure (paid only on winnings); calculateMoneyRatio
2022-01-14 11:11:01 -06:00
mantikoros
3cffccdd3f
calculateMoneyRatio
2022-01-13 20:52:03 -06:00
mantikoros
411a739004
ante bets created at same time as contract
2022-01-13 10:40:08 -06:00
mantikoros
bc454e89ba
calculateMoneyRatio
2022-01-12 23:43:07 -06:00
jahooma
de043de589
Add visibility field to contracts. Hot contracts & activity feed show only visibility 'public'.
2022-01-12 19:53:50 -06:00
mantikoros
9d5490cf9a
Switch to new dpm mechanism ( #26 )
...
* initial commit
* antes
* rename path, compute to contractPath, contractMetrics
* merge
* Include antes as bets; more calculations
* fees on estimated winnings
* mkt payout calculation
* contract: remove startPool, add phantomShares
* Merge branch 'main' into new-dpm
* dpm migration script
* my service account
2022-01-12 13:01:04 -06:00
mantikoros
9a834526c0
formatting
2022-01-10 17:52:03 -06:00
mantikoros
a1aeabeab4
move market logic to common
2022-01-10 16:49:13 -06:00
mantikoros
129d66c10f
improve slugs
2022-01-10 16:49:13 -06:00
mantikoros
b97a65cf2c
refactor data structures, calculations to common directory
2022-01-10 15:07:57 -06:00