Skip to content
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

Negative Voting Single Calculation Change #6286

Merged
merged 1 commit into from
Mar 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/grants/clr.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def calculate_new_clr(aggregated_contributions, pair_totals, threshold=0.0, tota
if k2 > k1: # removes single donations but adds it in below, vitalik's formula
tot += ((v1 * v2) ** 0.5) / (pair_totals[k1][k2] / threshold + 1)
if k2 == k1: # negative vote will count less if single, but will count
tot += ((v1 * v2) ** 0.5) / (pair_totals[k1][k2] / 1 + 1)
tot += ((v1 * v2) ** 0.5)
totals.append({'id': proj, 'clr_amount': tot})

return totals
Expand Down