Skip to content

Commit

Permalink
Merge pull request #45 from show-karma/feat/arbitrum-percentile
Browse files Browse the repository at this point in the history
Feat/arbitrum percentile
  • Loading branch information
Arthh authored Jul 1, 2024
2 parents 5662370 + c30dd79 commit 79d02d2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/score/default-with-dework-dao-score.provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class DefaultWithDeworkDaoScoreProvider extends interfaces_1.BaseProvider {
const resource = await (0, get_weights_1.getWeights)(resourceName || "default-with-dework");
this.weights = resource;
}
// Used for score breakdown display
getScoreBreakdownCalc(stat, period, type = "score") {
const { score: { lifetime: karma }, forumScore: { lifetime: forum }, } = this.weights;
switch (type) {
Expand Down
19 changes: 19 additions & 0 deletions src/util/weights/arbitrum.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"score": {
"lifetime": {
"forumActivityScore": 1,
"offChainVotesPct": 3,
"onChainVotesPct": 5
}
},
"forumScore": {
"lifetime": {
"proposalsInitiatedPercentile": 1,
"proposalsDiscussedPercentile": 0.2,
"forumPostCountPercentile": 0.1,
"forumTopicCountPercentile": 0.3,
"forumLikesReceivedPercentile": 0.05,
"forumPostsReadCountPercentile": 0.01
}
}
}

0 comments on commit 79d02d2

Please sign in to comment.