A pivotal update is being prepared for the credit protocol operating on the XRP Ledger, focusing on modifying the method of rounding repayment amounts. According to a formal pull request on GitHub, this change aims to align the remaining loan balance more closely with the payment schedule after each transaction.
Key Features of the Proposed Update
Under the LendingProtocolV1_2 update, the TotalValueOutstanding will be adjusted to the next planned payment level after every LoanPay transaction made on time. This will be restricted by the rounded PeriodicPayment value, thereby reducing minor discrepancies, particularly noticeable with the final installment.
The initial code adjustment involves transferring the calculation of planned value from within the computeLoanProperties function to a separate scheduledValue function. Developers assure that this step doesn’t alter existing behavior but ensures consistent rounding methods between LoanSet and LoanPay transactions.
XRP Ledger developers assert that the update will make the remaining debt amount post-payment more consistent with the payment schedule, ensuring the final payment equals the rounded PeriodicPayment value.
Significance of Addressing Rounding Discrepancies
Currently, the value component of each payment is calculated independently, allowing rounding discrepancies to accumulate over installments. This could result in the final payment being one unit higher than the rounded PeriodicPayment amount. Additionally, the components of payment may vary alternately between installments.
The proposed amendment, utilizing a method known as telescoping, aims to limit this discrepancy. Each timely payment’s value portion will correspond to either the lower or upper rounded PeriodicPayment amount, remaining at least one unit by default. Consequently, the final payment is anticipated to conclude at the precise rounded PeriodicPayment level.
Implications for Users and Activation Timeline
Developers believe that the change will have minimal impact on current users and financial stakeholders. The small additional unit discrepancy in the final installment is considered negligible, and existing loans that carry structures incorporating a single unit beyond the plan are to be maintained. Thus, without prior significant overpayment by the debtor, the final installment might require one additional unit beyond the PeriodicPayment amount.
For minor overpayments, the current approach largely remains preserved. The transaction concludes successfully without incurring additional XRP fees. In zero-interest loans, a base is required to be applied to the principal component, as the total value is rounded to the nearest value while the principal is rounded up.
LendingProtocolV1_2 activation necessitates at least an 80% consensus from validators for two consecutive weeks.
The activation date, however, remains uncertain. There has been no public voting process announced for LendingProtocolV1_2, leaving its implementation timeline undetermined.



