-
-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Monthly rewards #890
Monthly rewards #890
Conversation
(what === 'stackers' && (query.by === 'stacked' || !USER_SORTS.includes(query.by))) || | ||
(what === 'territories' && (query.by === 'stacked' || !SUB_SORTS.includes(query.by))) || | ||
(what === 'stackers' && (query.by === 'rewardability' || !USER_SORTS.includes(query.by))) || | ||
(what === 'territories' && (query.by === 'stacking' || !SUB_SORTS.includes(query.by))) || | ||
(['posts', 'comments'].includes(what) && (query.by === 'zaprank' || !ITEM_SORTS.includes(query.by)))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also changed stacked
to stacking
and spent
to spending
... I felt like it was clearer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couldn't find anything but left some comments and
- verified that earn runs once per month now
- verified that proportions in lib/madness.js add up to 1:
$ cat lib/madness.js | sed -e '1d' -e '$d' | awk -F',' '{sum+=$1;} END{print sum;}'
1
const UPVOTE_EACH_REWARD = 4.0 | ||
const TOP_PERCENTILE = 33 | ||
const TOTAL_UPPER_BOUND_MSATS = 1000000000 | ||
const TOTAL_UPPER_BOUND_MSATS = 10000000000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: good use case for underscore notation:
- 10000000000
+ 10_000_000_000
GROUP BY users.id | ||
ORDER BY streak DESC, created_at ASC | ||
OFFSET $3 | ||
LIMIT ${LIMIT}`, ...range, decodedCursor.offset) | ||
).map( | ||
u => u.hideFromTopUsers || u.hideCowboyHat ? null : u |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be cool to not hide the own account; only show that you are hidden for others.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, but we'd need to indicate they are hidden for other people too (because they'd go to view it and wonder if their setting has been applied)
percentile_cutoff INTEGER DEFAULT 33, | ||
each_upvote_portion FLOAT DEFAULT 4.0, | ||
each_item_portion FLOAT DEFAULT 4.0, | ||
handicap_ids INTEGER[] DEFAULT '{616, 6030, 946, 4502}', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
anon with id 27 missing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We exclude them in the earn
job but it would've been nice to do here too.
We are doing a monthly rewards experiment. To better support this so far we have:
TODO:
/rewards
) for monthly rewards with more rewardable stackersearn
job logic