Lending Application

Lending Protocol

How the proposed Lending Protocol (XLS-66) would build fixed-term loans into the XRPL itself, using pooled funds from Single Asset Vaults (XLS-65).

01

What it is

Loans written into the ledger itself.

The Lending Protocol lets a pool of funds be lent out as fixed-term loans, with every loan recorded on the XRPL. The pool lives in a Single Asset Vault. The loans are uncollateralized: the ledger holds no collateral and liquidates no one.

Pooled funds

Many depositors put one asset into a vault. Loans are paid out of that vault.

Fixed terms

Each loan sets its principal, interest rate, payment schedule, fees and grace period up front.

Recorded on-chain

Creating a loan, each payment and any default are transactions on the ledger.

Status on 2026-11-23

Proposed, not live. The LendingProtocol and SingleAssetVault amendments are open for validator voting and are not enabled on Mainnet. Support changes as validators vote, so check the Known Amendments page for live numbers.

02

Vaults and shares (XLS-65)

One asset goes in. Shares come out.

A Single Asset Vault holds one asset: $XRP, a trust line token or an MPT. Depositors put that asset in and receive shares, which record their part of the vault. The shares are MPTs issued by the vault.

Shares calculator

Example numbers only. New shares are issued in proportion to what the vault already holds. Real vaults also adjust for unrealized losses.

2,500
03

Three roles

Pick a role to see what it does.

Depositor

Adds the vault’s asset and receives shares.

  • Deposits with VaultDeposit and gets shares back.
  • Redeems shares with VaultWithdraw.
  • Shares the loss if a loan isn’t repaid, after any first-loss capital is used.

Loan broker

Creates the vault, sets up lending on it and manages its loans. For now, the vault owner and the loan broker must be the same account.

  • Creates the vault with VaultCreate and the lending setup with LoanBrokerSet.
  • Decides who gets a loan and on what terms. That judgment happens off-chain.
  • Co-signs each LoanSet with the borrower.
  • Can deposit first-loss capital, and can default a loan once its grace period ends.

Borrower

Receives a loan and repays it on the schedule in its terms.

  • Agrees the terms and co-signs LoanSet.
  • Receives the principal from the vault.
  • Repays with LoanPay. Each payment covers principal, interest and fees.
04

Creating a loan: LoanSet

Both sides sign before any funds move.

Broker and borrower agree terms
→
One side builds and signs LoanSet
→
The other side checks the terms and signs
→
Principal moves from the vault to the borrower

LoanSet creates a Loan entry on the ledger. It is a mutual agreement, so it must be signed by both the loan broker and the borrower. Either side can start it. The terms include the principal, the interest rate, the number of payments, the time between payments and the grace period.

Built-in limits

LoanSet fails if the vault doesn’t hold enough to fund the loan, or if the broker’s first-loss capital would fall below the minimum required for its new total debt.

05

Payments

Each payment is split into principal, interest and fees.

Principal

Reduces what the borrower still owes.

Interest

The cost of borrowing for that period, at the rate set in the loan.

Fees

Charges the broker can set, such as a service fee on each payment or a late payment fee.

Borrowers pay with LoanPay. A loan can set three rates: the regular interest rate, a higher late interest rate for late payments, and a rate charged for repaying the whole loan early.

Broker fees can include an origination fee taken from the principal when the loan is made, a service fee on each payment, late and early payment fees, and a management fee, which is a percentage of the interest. A broker whose first-loss capital is below the minimum can’t receive fees. They’re added to its cover instead.

A late payment must cover one full payment period plus fees and late interest. Until every overdue period is paid, the borrower can’t make on-time payments or repay early.

06

No collateral

Whether a borrower can repay is judged off-chain.

This version of the protocol doesn’t hold collateral and has no automatic liquidation. Deciding who gets a loan, and on what terms, is up to the loan broker, using its own checks outside the ledger. The ledger handles creating the loan, taking payments and recording defaults.

Reality Check

If a borrower doesn’t repay, the ledger can’t seize anything. The loss falls on the vault, after whatever first-loss capital covers.

07

First-loss capital

The broker’s own funds take the first hit.

A loan broker can deposit first-loss capital in the same asset as the vault. It’s held in a separate pseudo-account, and if a loan defaults, part of it moves into the vault to offset the loss. It is optional, and it reduces losses rather than removing them.

Cover available

How much first-loss capital the broker has deposited.

Minimum cover rate

The share of the broker’s total debt that must be covered. Below it, the broker can’t make new loans or receive fees.

Liquidation rate

Caps how much of the minimum required cover moves into the vault when a loan defaults.

Default cover calculator

Uses the formula from xrpl.org: cover used = the smaller of (total debt × minimum cover rate × liquidation rate) and the amount in default. The starting numbers are the xrpl.org example.

10.9
Issuer controls

Issuers of trust line tokens and MPTs can claw back first-loss capital, but only down to the minimum the broker must keep. They can also freeze accounts. A frozen borrower can’t make payments but still owes them.

08

Missed payments and default

A grace period first. Then the broker decides.

Payment due
→
Payment missed
→
Grace period
→
Broker can default the loan
→
First-loss capital covers part of the loss
09

Step through a loan

Follow one example loan from deposit to default.

Example numbers

Every number here is a made-up example in a generic token, taken from the worked example on xrpl.org. No fees are charged in this example.

VaultCreate · LoanBrokerSet

The broker opens a vault

A loan broker creates a vault for one asset and sets up lending on it. The vault starts empty.

VaultDeposit

Depositors add funds

Depositors put 100,000 tokens into the vault and receive 100,000 shares between them.

LoanBrokerCoverDeposit

The broker adds first-loss capital

The broker deposits 1,000 tokens of its own as cover. It’s held apart from the vault.

LoanSet

Broker and borrower sign the loan

Both sign a LoanSet for 1,000 tokens of principal, with 90 tokens of interest over the life of the loan. The 1,000 leaves the vault for the borrower. The broker’s cover of 1,000 is above the 10% minimum (109), so the loan is allowed.

In this example the vault counts the 90 of scheduled interest in its total value right away. A follow-up amendment, LendingProtocolV1_1, would count interest only once it’s paid.

GracePeriod

A payment is missed

The first due date passes without a LoanPay from the borrower. The loan enters its grace period. Nothing moves yet.

LoanManage

The broker defaults the loan

The grace period ends and the borrower still hasn’t paid, so the broker defaults the loan. First-loss capital covers 10.9 tokens (10% liquidation rate × 10% of 1,090) and moves them into the vault. The vault absorbs the other 1,079.1.

VaultWithdraw

Depositors share the loss

There are still 100,000 shares, but the vault now holds 99,010.9 tokens. Each share is backed by a little less than one token, and every depositor redeems at that lower value.

LoanDelete

Cleaning up

The defaulted loan can now be deleted. If the borrower had made every payment, the loan would have been repaid in full and deleted the same way, with no loss to the vault.

Available in vault0
Vault total value0
Owed by borrower0
First-loss cover0
Vault shares0
10

How it goes live

Two amendments. The same vote as every other change.

XLS-66 builds on XLS-65, Single Asset Vaults, and XLS-64, pseudo-accounts. Vault shares are Multi-Purpose Tokens from XLS-33, which is already enabled on Mainnet.

Lending needs both the SingleAssetVault and LendingProtocol amendments. Each is enabled only after it holds support from more than 80% of trusted validators for two weeks. A follow-up amendment, LendingProtocolV1_1, is also open for voting. It would change some details, such as limiting new loans to closed-ended vaults with fixed phases.

Check it yourself

The Known Amendments page shows live support for each amendment. The Amendments & Governance lesson explains how the vote works.

11

Common misconceptions

What people often get wrong about XRPL lending.

“It’s already live.” On 2026-11-23 it is open for voting and not enabled on Mainnet.
“The ledger checks the borrower’s credit.” It doesn’t. That judgment happens off-chain. The ledger enforces the agreed terms.
“Loans are backed by collateral.” This version has no on-chain collateral and no liquidation.
“First-loss capital means depositors can’t lose.” It covers only part of a default. In the xrpl.org example it covers 10.9 of 1,090.
“A broker can write a loan alone.” LoanSet needs signatures from both the broker and the borrower.
“A missed payment defaults the loan at once.” A grace period comes first, and after it the broker decides whether to default.
✓

Did it click?

Answer these without guessing.

Who must sign a LoanSet transaction?

What collateral does the ledger hold for a loan?

What does a depositor receive for adding assets to a vault?

What happens right after a missed payment?

What happens to first-loss capital when a loan defaults?

→

Keep moving

Open the next application and keep building the full picture.

§

Sources

Facts on this page were checked against official xrpl.org documentation and the XRPL-Standards repository on 2026-11-23.