From a620efc5fad5a2eca2edd73d5f59d3a3c639c4a2 Mon Sep 17 00:00:00 2001 From: nutrina Date: Thu, 20 Apr 2023 13:56:33 +0300 Subject: [PATCH 1/2] fix(scorer): adjusting weights for the beta rounds --- api/scorer/settings/gitcoin_passport_weights.py | 13 ++++++++----- api/scorer/test/test_create_community_id.py | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/api/scorer/settings/gitcoin_passport_weights.py b/api/scorer/settings/gitcoin_passport_weights.py index 6cde7e932..75aeb6959 100644 --- a/api/scorer/settings/gitcoin_passport_weights.py +++ b/api/scorer/settings/gitcoin_passport_weights.py @@ -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", @@ -61,8 +62,10 @@ "TwitterFollowerGT5000": "0", "TwitterFollowerGTE1000": "1.77", "TwitterTweetGT10": "1.67", + "YupScore": "0", "ZkSync": "1.67", } + # The Boolean scorer deems Passport holders unique humans if they meet or exceed the below thresholdold GITCOIN_PASSPORT_THRESHOLD = "15" diff --git a/api/scorer/test/test_create_community_id.py b/api/scorer/test/test_create_community_id.py index 6260476bd..0c0bdbaa2 100644 --- a/api/scorer/test/test_create_community_id.py +++ b/api/scorer/test/test_create_community_id.py @@ -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" From e734ac54632c2fddbee6f242fb2ca3d23bbd4150 Mon Sep 17 00:00:00 2001 From: nutrina Date: Thu, 20 Apr 2023 14:43:39 +0300 Subject: [PATCH 2/2] fix(scorer): removing bad key from scorer weights --- api/scorer/settings/gitcoin_passport_weights.py | 1 - 1 file changed, 1 deletion(-) diff --git a/api/scorer/settings/gitcoin_passport_weights.py b/api/scorer/settings/gitcoin_passport_weights.py index 75aeb6959..52d5143a2 100644 --- a/api/scorer/settings/gitcoin_passport_weights.py +++ b/api/scorer/settings/gitcoin_passport_weights.py @@ -62,7 +62,6 @@ "TwitterFollowerGT5000": "0", "TwitterFollowerGTE1000": "1.77", "TwitterTweetGT10": "1.67", - "YupScore": "0", "ZkSync": "1.67", }