Skip to content
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