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 proposers rewards #169

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
4 changes: 3 additions & 1 deletion catalyst-toolbox/scripts/python/proposers_rewards.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ async def get_proposals_voteplans_and_challenges_from_api(
proposal.chain_proposal_id: proposal for proposal in await proposals_task
}
voteplans_proposals = {
proposal.chain_proposal_id: proposal
proposal.proposal_id: proposal
for proposal in itertools.chain.from_iterable(
voteplan.proposals for voteplan in await voteplans_task
)
Expand Down Expand Up @@ -317,6 +317,7 @@ def calc_vote_difference_and_threshold_success(
"no",
"result",
"meets_approval_threshold",
"wallets",
"requested_dollars",
"status",
"fund_depletion",
Expand Down Expand Up @@ -371,6 +372,7 @@ def calc_results(
no=no_result,
result=total_result,
meets_approval_threshold=YES if threshold_success else NO,
wallets=voteplan_proposal.votes_cast,
requested_dollars=proposal.proposal_funds,
status=FUNDED if funded else NOT_FUNDED,
fund_depletion=depletion,
Expand Down