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 4c9a96a commit 156186dCopy full SHA for 156186d
src/xrpld/app/tx/detail/LoanPay.cpp
@@ -388,6 +388,11 @@ LoanPay::doApply()
388
!asset.integral() || totalPaidToVaultRaw == totalPaidToVaultRounded,
389
"ripple::LoanPay::doApply",
390
"rounding does nothing for integral asset");
391
+ // Account for value changes when reducing the broker's debt:
392
+ // - Positive value change (from full/late/overpayments): Subtract from the
393
+ // amount credited toward debt to avoid over-reducing the debt.
394
+ // - Negative value change (from full/overpayments): Add to the amount
395
+ // credited toward debt,effectively increasing the debt reduction.
396
auto const totalPaidToVaultForDebt =
397
totalPaidToVaultRaw - paymentParts->valueChange;
398
0 commit comments