From 2ba665c39778d33ec34ff1464bf65222ecc6735b Mon Sep 17 00:00:00 2001 From: Fuzzbawls Date: Sat, 10 Sep 2022 23:31:18 -0700 Subject: [PATCH] [GUI] Fix Passing Not Funded logic Followup to #2717 which was incorrectly marking proposals as Over Budget instead of Not Passing --- src/qt/pivx/governancemodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/pivx/governancemodel.cpp b/src/qt/pivx/governancemodel.cpp index 631102a3188ba..b1084eae1bbdb 100644 --- a/src/qt/pivx/governancemodel.cpp +++ b/src/qt/pivx/governancemodel.cpp @@ -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;