MARKETSBTC $75,446.00 -0.30%ETH $2,153.94 -3.49%BNB $689.93 -0.66%XRP $1.12 -3.08%SOL $88.25 -0.88%DOGE $0.070061 -1.61%ADA $0.178250 -0.96%AVAX $8.07 -1.30%Prices are for reference only, not investment advice

Ripple’s XRP Ledger developers propose fix for loan repayment rounding issues

Ripple's XRP Ledger developers propose fix for loan repayment rounding issuesRailThe payment rail for your crypto. One card. Every chain. No KYC. Spend with Apple Pay or Google Pay in 180+ countries.

XRP Ledger developers have proposed a new lending protocol update that would correct how loan repayments are rounded, preventing small calculation differences from accumulating across scheduled payments.

Summary
  • XRP Ledger developers proposed repayment rounding changes under the planned LendingProtocolV1_2 amendment for native lending.
  • The correction would prevent accumulated rounding differences from making final loan installments exceed scheduled amounts.
  • Developers tested repayment calculations across Legacy, CashBasis and FixedPrecision vaults under several different amendment configurations.
  • Existing loans carrying rounding differences may retain them unless borrowers make qualifying overpayments during repayment.
  • LendingProtocolV1_2 remains under development, with mainnet activation requiring sustained support from trusted XRP Ledger validators.

The November 6 GitHub proposal introduces changes under the planned LendingProtocolV1_2 amendment, which would align outstanding loan balances with their repayment schedules. The correction addresses cases where rounding differences can leave the final installment slightly higher than the amount borrowers were originally scheduled to pay.

The proposal remains under review and has not been activated on XRP Ledger’s mainnet. Developers have included tests covering different vault accounting methods, existing loans and situations where borrowers pay more than their scheduled installments.

You might also like: XRP Ledger fixes bug that could allow unauthorized token minting

XRP Ledger Lending Fix Targets Repayment Rounding

At the center of the proposal is how the XRP Ledger calculates the remaining amount owed after borrowers make payments toward a loan.

Under the existing calculation described by the developer, each installment’s value is worked out separately. Small rounding differences can accumulate as payments progress, occasionally leaving the final installment one unit higher than the rounded periodic payment.

The proposed correction introduces a calculation method known as telescoping, which uses the remaining repayment schedule to determine the outstanding balance after each installment.

Rather than allowing individual calculations to produce cumulative differences, the system would bring the outstanding value back into line with the remaining scheduled payments.

Under LendingProtocolV1_2, each on-time LoanPay transaction would reduce TotalValueOutstanding to the scheduled amount with one fewer payment remaining. The adjustment would remain capped at the rounded PeriodicPayment.

The developer’s description states that the change would make the value portion of each scheduled installment equal to either the rounded-down or rounded-up periodic payment, while keeping it at least one unit.

The final installment would then match the rounded PeriodicPayment exactly for loans following the corrected schedule.

Developers Adjust LoanSet and LoanPay Calculations

The proposed code changes involve LoanSet, which establishes loan terms, and LoanPay, which processes repayments on the ledger.

The first commit moves the calculation of a loan’s scheduled value out of computeLoanProperties and into a separate function called scheduledValue.

Developers said this initial adjustment does not change existing behavior. Its purpose is to ensure that loan creation and repayment processing use the same rounding method.

A second commit introduces the repayment correction under LendingProtocolV1_2, including adjustments to the remaining balance whenever a borrower makes an accepted overpayment.

After such a payment, TotalValueOutstanding would reset to the scheduled value calculated using the revised PeriodicPayment, allowing subsequent installments to follow the updated schedule.

The proposal includes safeguards for the principal portion of each installment, preventing calculations from leaving a negative amount of unpaid interest.

Zero-interest loans require separate handling because the loan’s total value uses rounding to the nearest unit, while the principal amount rounds upward.

Developers have tested the changes across Legacy, CashBasis and FixedPrecision vault accounting models, both with and without the proposed amendment enabled.

Existing XRP Ledger Loans Would Keep Some Rounding Differences

Although the proposed changes would correct repayment calculations going forward, they would not automatically eliminate every rounding difference attached to existing loans.

The GitHub proposal explains that older loans already carrying one unit above their scheduled balance would retain that difference until the borrower makes an overpayment.

Such loans could therefore still require a final installment equal to the rounded PeriodicPayment plus one additional unit.

Small overpayments may be ignored when they fall within existing rounding limits. In those cases, the transaction can return a successful result without charging an additional loan payment.

The developer has included tests covering amendment activation while a loan remains outstanding, allowing the revised calculations to be checked against existing repayment records.

These adjustments concern loan accounting within the proposed lending protocol. They do not change ordinary XRP transfers or establish a new borrowing product available to all XRP holders.

LendingProtocolV1_2 Still Requires Validator Approval

The repayment proposal forms part of XRP Ledger’s continuing work on native lending, which would allow fixed-term loans funded through Single Asset Vaults.

In September, crypto.news covered the lending changes introduced in XRP Ledger version 3.4.0, including closed-ended vaults and cash-basis accounting under LendingProtocolV1_1.

The proposed lending framework would use pooled assets to fund loans, while brokers would assess borrowers and manage credit risk outside the blockchain.

An October review of validator voting found that the lending and vault amendments had not secured the required support to activate.

Meanwhile, a separate maintenance amendment activated on November 4, addressing several transaction-processing issues without enabling the lending protocol.

Under XRP Ledger’s amendment process, a proposed change must receive support from more than 80% of trusted validators for two consecutive weeks before activation.

Pull request #8698 remains open, and no mainnet activation date has been announced for LendingProtocolV1_2.

Read more: Michael Saylor hints at another Strategy Bitcoin buy as BTC trades near $76K

US crypto regulation hub

Crypto mining in the US: federal rules and the state map

Crypto kiosk rules by state: bans, licenses and the fraud data

Crypto ETF rules in the US: how a fund gets listed now

Crypto banking access in the US: master accounts, the chokepoint, and what changed

CFTC and crypto in 2026: what the agency now governs

Is crypto legal in the US? Yes, and here is the structure

Crypto executive orders: what the White House has actually ordered

SEC crypto enforcement in 2026: from registration war to fraud beat

IRS crypto tax rules in 2026: what actually gets taxed

The OCC and crypto: national trust charters, explained

View all

Deep Dives

Why did the ED raid CoinDCX and Delta Exchange? What users should know - 1 Feature Read more - Why did the ED raid CoinDCX and Delta Exchange? What users should know

Why did the ED raid CoinDCX and Delta Exchange? What users should know

4 hours ago
Can companies stop third parties trading tokenized US shares? - 2 Feature Read more - Can companies stop third parties trading tokenized US shares?

Can companies stop third parties trading tokenized US shares?

1 day ago
Binance recovery, US crypto bill talks, Bitcoin ETF exits | Weekly recap - 3 Recap Read more - Binance recovery, US crypto bill talks, Bitcoin ETF exits | Weekly recap

Binance recovery, US crypto bill talks, Bitcoin ETF exits | Weekly recap

1 day ago
Pi Network is moving more rewards onchain. When can holders sell? - 4 Feature Read more - Pi Network is moving more rewards onchain. When can holders sell?

Pi Network is moving more rewards onchain. When can holders sell?

Pi Network PI Pi Network 2 days ago
Bitcoin ETFs lost $430 million as Fidelity reversed course - 5 Feature Read more - Bitcoin ETFs lost $430 million as Fidelity reversed course

Bitcoin ETFs lost $430 million as Fidelity reversed course

Bitcoin BTC Bitcoin 2 days ago
Ripple wants to pay suppliers in RLUSD. Where does XRP fit? - 6 Feature Read more - Ripple wants to pay suppliers in RLUSD. Where does XRP fit?

Ripple wants to pay suppliers in RLUSD. Where does XRP fit?

2 days ago
How Polygon would return 70 million stolen POL to recovery wallets - 7 Feature Read more - How Polygon would return 70 million stolen POL to recovery wallets

How Polygon would return 70 million stolen POL to recovery wallets

MATIC (migrated to POL) MATIC MATIC (migrated to POL) 2 days ago
Can Ethereum make rollups feel like one network? - 8 Feature Read more - Can Ethereum make rollups feel like one network?

Can Ethereum make rollups feel like one network?

Ethereum ETH Ethereum 2 days ago
USDC pays for gas on Arc. How much demand comes from payments? - 9 Feature Read more - USDC pays for gas on Arc. How much demand comes from payments?

USDC pays for gas on Arc. How much demand comes from payments?

3 days ago
Zcash is cutting block times. What changes for users and miners? - 10 Feature Read more - Zcash is cutting block times. What changes for users and miners?

Zcash is cutting block times. What changes for users and miners?

Zcash ZEC Zcash 3 days ago
Ripple's David Schwartz addresses XRP price criticism as token falls to $1.16 News Read more - Ripple’s David Schwartz addresses XRP price criticism as token falls to $1.16

Ripple’s David Schwartz addresses XRP price criticism as token falls to $1.16

XRP XRP XRP 3 hours ago
Ripple wants to pay suppliers in RLUSD. Where does XRP fit? - 11 Feature Read more - Ripple wants to pay suppliers in RLUSD. Where does XRP fit?

Ripple wants to pay suppliers in RLUSD. Where does XRP fit?

2 days ago
XRP Ledger fixes bug that could allow unauthorized token minting News Read more - XRP Ledger fixes bug that could allow unauthorized token minting

XRP Ledger fixes bug that could allow unauthorized token minting

3 days ago
Source: crypto.newsOriginal URL: crypto.news