Skip to content
Search
Crypto Informa

Prices USD · 24 h

  • BTC$61,607.00+1.63%
  • ETH$1,721.48+1.22%
  • XRP$0.9756+2.61%
  • BNB$563.65+2.23%
  • SOL$73.18+3.37%
  • DOGE$0.0588+3.62%
  • ADA$0.1533+2.97%
  • TRX$0.3043+0.29%
Data by CoinGecko

XRP Ledger loans: developers propose a fix for repayment rounding

The proposal would align outstanding balances with repayment schedules and prevent discrepancies in the final installment. The fix is still under technical review.

By Redacción Crypto Informa
Published:
Reading time: 3 min
Share
Emblema de XRP junto a bloques de vidrio y una balanza, con la mascota de Crypto Informa.
Illustration: Crypto Informa · Original illustration

A proposal for XRP Ledger loans aims to prevent rounding differences from accumulating across installments and changing the final payment. The change is documented in pull request 8698 in the repository for rippled, the software that runs the network. Technical review began on November 6, and coverage on November 8 focused on the effects on repayment schedules.

The change is part of the work identified as LendingProtocolV1_2. It aims to align a loan's outstanding balance with the scheduled value of its remaining installments. The pull request describes the fix and its tests. Merging the proposal into the repository and eventually activating an amendment on the network are separate steps.

How rounding differences accumulate

XRP Ledger loan accounting uses amounts with limits on precision. A calculation can produce a fraction smaller than the unit the system can represent for an asset. When this happens, the software must adjust the result to a unit it can record. The difference can be minimal in a single transaction, but a loan has a sequence of installments that must reconcile with the balance owed.

The issue described in the proposal arises because the value component of each installment is rounded separately. Those differences can accumulate over the repayment schedule. In some cases, the final payment can require one representable unit more than the rounded periodic amount. The economic value of that unit depends on the asset and its precision. The pull request focuses on making the calculation consistent.

The proposed solution uses the balance scheduled for the remaining installments as its reference. When a payment is made on time, the transaction would adjust the balance toward the scheduled value with one fewer installment. This would offset rounding differences across intermediate installments rather than carrying them over to the end of the loan.

Emblema de XRP sobre una máquina de precisión que calibra bloques de vidrio, con la mascota de Crypto Informa.
The proposal aims to align the outstanding balance with the repayment schedule. · Illustration: Crypto Informa · Original illustration

What needs to happen before the network changes

The proposed code also handles payments above the periodic amount where allowed and tests cases at the limits of precision. The pull request includes tests for several versions of vaults, structures that pool funds for lending. It also covers transition scenarios for loans that are outstanding if the amendment is activated.

These tests help assess whether the XRP Ledger loan fix produces consistent results for lenders, borrowers and the software that calculates the balance. The proposal matters to operators that display repayment schedules or reconcile amounts recorded on the network. Even a one-unit difference in the final installment can cause a discrepancy between the balance an interface reports and the one recorded by the protocol.

XRP Ledger changes the rules its nodes apply through amendments. The network documentation says an amendment must retain the support of at least 80% of trusted validators for two consecutive weeks to activate. This stage is separate from reviewing changes on GitHub or incorporating them into a software release.

For now, the available materials describe the proposed fix for XRP Ledger loans and its tests. It remains to be seen when it will be included in a public release and whether validators will support activating the amendment. Until then, the repayment schedule for each loan depends on the rules active on the network.

Tags

This is information, not financial advice. Before deciding, compare sources and consider your own situation.

Related news