Here is the relevant section of the code:
export const userSmallVotePower = (karma: number, multiplier: number) ⇒ {if (karma >= 1000) { return 2 * multiplier }return 1 * multiplier}export const userBigVotePower = (karma: number, multiplier: number) ⇒ {if (karma >= 500000) { return 16 * multiplier } // Thousand year old vampireif (karma >= 250000) { return 15 * multiplier }if (karma >= 175000) { return 14 * multiplier }if (karma >= 100000) { return 13 * multiplier }if (karma >= 75000) { return 12 * multiplier }if (karma >= 50000) { return 11 * multiplier }if (karma >= 25000) { return 10 * multiplier }if (karma >= 10000) { return 9 * multiplier }if (karma >= 5000) { return 8 * multiplier }if (karma >= 2500) { return 7 * multiplier }if (karma >= 1000) { return 6 * multiplier }if (karma >= 500) { return 5 * multiplier }if (karma >= 250) { return 4 * multiplier }if (karma >= 100) { return 3 * multiplier }if (karma >= 10) { return 2 * multiplier }return 1 * multiplier}
export const userSmallVotePower = (karma: number, multiplier: number) ⇒ {
if (karma >= 1000) { return 2 * multiplier }
return 1 * multiplier
}
export const userBigVotePower = (karma: number, multiplier: number) ⇒ {
if (karma >= 500000) { return 16 * multiplier } // Thousand year old vampire
if (karma >= 250000) { return 15 * multiplier }
if (karma >= 175000) { return 14 * multiplier }
if (karma >= 100000) { return 13 * multiplier }
if (karma >= 75000) { return 12 * multiplier }
if (karma >= 50000) { return 11 * multiplier }
if (karma >= 25000) { return 10 * multiplier }
if (karma >= 10000) { return 9 * multiplier }
if (karma >= 5000) { return 8 * multiplier }
if (karma >= 2500) { return 7 * multiplier }
if (karma >= 1000) { return 6 * multiplier }
if (karma >= 500) { return 5 * multiplier }
if (karma >= 250) { return 4 * multiplier }
if (karma >= 100) { return 3 * multiplier }
if (karma >= 10) { return 2 * multiplier }
In other words, you get 2 small-vote power at 1000 karma, and you can look at the numbers above to see the multipliers for strong-votes.
What’s multiplier?
multiplier
And why is it equal to 1?
It’s sometimes 1 (for upvotes) and sometimes −1 (for downvotes). Implementing it as a free variable was a bit easier than implementing it as a boolean, so we did that.
Here is the relevant section of the code:
In other words, you get 2 small-vote power at 1000 karma, and you can look at the numbers above to see the multipliers for strong-votes.
What’s
multiplier
?And why is it equal to 1?
It’s sometimes 1 (for upvotes) and sometimes −1 (for downvotes). Implementing it as a free variable was a bit easier than implementing it as a boolean, so we did that.