XRP Ledger Lending Protocol to Get Loan Repayment Rounding Fix

2 min read
XRP Ledger Lending Protocol to Get Loan Repayment Rounding Fix
PrimeXBT Editorial Team
Reviewed by PrimeXBT

Topics in article

XRP

The XRP Ledger's lending protocol is set to get a fix for how loan repayments are rounded. The change would make the balance after each payment match the schedule. Its activation date is still to be determined.

The XRP Ledger's lending protocol is getting a fix for how loan repayments get rounded, according to U.Today. In plain terms, the balance after each payment would match the schedule, and the update is described in an official GitHub pull request.

How the rounding change works

Under the LendingProtocolV1_2 amendment, each on-time LoanPay would bring TotalValueOutstanding down to the scheduled value with one payment fewer, capped at the rounded PeriodicPayment. After an overpayment, TotalValueOutstanding is reset to the scheduled value of the new PeriodicPayment.

Today, each payment's value part is calculated on its own, so rounding can build up across payments. As a result, the last payment can need one unit more than the rounded PeriodicPayment, and the value parts can alternate between payments.

The change uses a method called telescoping. It makes the value part of every on-time payment either the floor or the ceiling of PeriodicPayment, and at least one unit. The last payment then becomes exactly the rounded PeriodicPayment.

Little effect for XRP users and investors

The first commit moves the scheduled-value calculation out of computeLoanProperties into a separate scheduledValue function, with no behavior change. That way, LoanSet and LoanPay round it the same way.

For XRP users, there is little to no effect today, per the report. Older loans that already carried one unit above their schedule keep it, so the last payment still needs the PeriodicPayment and a single unit, unless the borrower overpays first. Small overpayments are mostly ignored, and the transaction goes through without charging extra XRP.

Activation timeline remains open

Activation requires 80% of validators to agree for two weeks in a row. No public vote for LendingProtocolV1_2 has been announced yet, so the timeline remains uncertain.

Source: U.Today

Trading involves risk.

Author

PrimeXBT
Our Editorial Team consists of leading experts with a proven record in the fields of trading, cryptocurrencies, blockchain and finance. We thoroughly research the sources of information in order to provide readers with quality content that serves edu...
Read author’s articles
Alert Triangle Risk Disclaimer
Disclaimer: Some past publications may be outdated. We recommend following our news to stay up to date with the latest information. For any questions, feel free to contact our support team via the chat below.
The content provided here is for informational purposes only. It is not intended as personal investment advice and does not constitute a solicitation or invitation to engage in any financial transactions, investments, or related activities. Past performance is not a reliable indicator of future results.
The financial products offered by the Company are complex and come with a high risk of losing money rapidly due to leverage. These products may not be suitable for all investors. Before engaging, you should consider whether you understand how these leveraged products work and whether you can afford the high risk of losing your money.
The Company does not accept clients from the Restricted Jurisdictions as indicated in our website/ T&C. Some services or products may not be available in your jurisdiction.
The applicable legal entity and its respective products and services depend on the client’s country of residence and the entity with which the client has established a contractual relationship during registration.

Today in markets

Browse Crypto News

Register Now

Trading involves risk

Get started in minutes

Our clients love how fast and simple our sign-up is. It takes just a few minutes to get started!

Get Started Get Started
Get started in minutes

Need Help?

Risk Warning:
Trading in leveraged products carries a high level of risk and may not be suitable for all investors.