Skip to content

Commit

Permalink
Merge pull request #29 from danielSanchezQ/overall_score
Browse files Browse the repository at this point in the history
Include overall score in proposers rewards
  • Loading branch information
Daniel Sanchez authored Jul 14, 2021
2 parents 4010333 + 03bedd5 commit 31d23b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/python/proposers_rewards.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class Proposal(pydantic.BaseModel):
proposal_title: str
proposal_funds: int
proposal_url: str
proposal_impact_score: int
chain_proposal_id: str
chain_proposal_index: int
chain_vote_options: Dict[str, int]
Expand Down Expand Up @@ -278,6 +279,7 @@ def calc_vote_difference_and_threshold_success(
(
"proposal_id",
"proposal",
"overall_score",
"yes",
"no",
"result",
Expand Down Expand Up @@ -334,6 +336,7 @@ def calc_results(
result = Result(
proposal_id=proposal_id,
proposal=proposal.proposal_title,
overall_score=proposal.proposal_impact_score/100,
yes=yes_result,
no=no_result,
result=total_result,
Expand Down

0 comments on commit 31d23b9

Please sign in to comment.