We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 335b9be commit 27200abCopy full SHA for 27200ab
src/xrpld/app/tx/detail/LoanPay.cpp
@@ -305,7 +305,13 @@ LoanPay::doApply()
305
// change will be discarded.
306
if (loanSle->isFlag(lsfLoanImpaired))
307
{
308
- LoanManage::unimpairLoan(view, loanSle, vaultSle, j_);
+ if (auto const ret =
309
+ LoanManage::unimpairLoan(view, loanSle, vaultSle, j_);
310
+ ret != tesSUCCESS)
311
+ {
312
+ JLOG(j_.fatal()) << "Failed to unimpair loan before payment.";
313
+ return ret; // LCOV_EXCL_LINE
314
+ }
315
}
316
317
LoanPaymentType const paymentType = [&tx]() {
0 commit comments