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

fix(scorer): adjusting weights for the beta rounds #223

Merged
merged 2 commits into from
Apr 20, 2023
Merged
Show file tree
Hide file tree
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
12 changes: 7 additions & 5 deletions api/scorer/settings/gitcoin_passport_weights.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@

# Weight values for each stamp based on its perceived significance in assessing the unique humanity of the Passport holder
GITCOIN_PASSPORT_WEIGHTS = {
"Brightid": "2.29",
"CommunityStakingBronze": "0.83",
"Brightid": "0",
"CommunityStakingBronze": "2.29",
"CommunityStakingGold": "0.83",
"CommunityStakingSilver": "1.67",
"CommunityStakingSilver": "0.83",
"Coinbase": "1.67",
"Discord": "2.4",
"Ens": "1.56",
"Discord": "1.67",
"Ens": "2.4",
"EthGTEOneTxnProvider": "1.56",
"EthGasProvider": "1.56",
"ethPossessionsGte#1": "1.77",
"ethPossessionsGte#10": "2.81",
"ethPossessionsGte#32": "1.04",
Expand Down Expand Up @@ -64,5 +65,6 @@
"ZkSync": "1.67",
}


# The Boolean scorer deems Passport holders unique humans if they meet or exceed the below thresholdold
GITCOIN_PASSPORT_THRESHOLD = "15"
2 changes: 1 addition & 1 deletion api/scorer/test/test_create_community_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ def _():
community = Community.objects.all()[0]
scorer = community.scorer.binaryweightedscorer
assert scorer.threshold == Decimal("15.00")
assert scorer.weights["Discord"] == "2.4"
assert scorer.weights["Discord"] == "1.67"