fix: Improve loan invariant message (#6668)

This commit is contained in:
Vito Tumas
2026-03-26 13:40:26 +01:00
committed by Bart
parent 68596f60d8
commit dcf973bc50

View File

@@ -236,8 +236,7 @@ ValidLoan::finalize(
after->at(sfPrincipalOutstanding) == beast::zero &&
after->at(sfManagementFeeOutstanding) == beast::zero)
{
JLOG(j.fatal()) << "Invariant failed: Loan with zero payments "
"remaining has not been paid off";
JLOG(j.fatal()) << "Invariant failed: Fully paid off Loan still has payments remaining";
return false;
}
if (before && (before->isFlag(lsfLoanOverpayment) != after->isFlag(lsfLoanOverpayment)))