Skip to content

Commit

Permalink
[GUI] Fix Passing Not Funded logic
Browse files Browse the repository at this point in the history
Followup to PIVX-Project#2717 which was incorrectly marking proposals as Over Budget
 instead of Not Passing
  • Loading branch information
Fuzzbawls committed Sep 17, 2022
1 parent bb8b073 commit 2ba665c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/pivx/governancemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ ProposalInfo GovernanceModel::buildProposalInfo(const CBudgetProposal* prop, boo
status = ProposalInfo::FINISHED;
} else if (isPassing) {
status = ProposalInfo::PASSING;
} else if (votesYes - votesNo > mnCount / 10) {
} else if (allocatedAmount + prop->GetAmount() > getMaxAvailableBudgetAmount() && votesYes - votesNo > mnCount / 10) {
status = ProposalInfo::PASSING_NOT_FUNDED;
} else {
status = ProposalInfo::NOT_PASSING;
Expand Down

0 comments on commit 2ba665c

Please sign in to comment.