Commit Graph

266 Commits

Author SHA1 Message Date
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