Latch
Project Information
At a Glance
Overcollateralized lending on XRPL using 6 native primitives. Lock LP tokens as collateral, borrow RLUSD, autonomous settlement.
Description
Latch is the collateral layer for XRPL - overcollateralized lending built entirely from native XRP Ledger primitives.
DeFi lending protocols hold over $40B in TVL across chains. On XRPL, that number is zero. With XLS-65 Single Asset Vaults in validator vote, XRPL is about to get native yield-bearing vault positions with on-chain LP tokens. But there's no infrastructure to borrow against them. A depositor who needs short-term liquidity has one option: withdraw everything, break the position, lose the yield.
Latch solves this in three steps:
- Lock. LP tokens are locked in native XLS-85 Smart Escrow as collateral
- Borrow. XLS-47 Oracle prices the collateral on-chain, RLUSD is disbursed atomically via XLS-56 Batch Transactions
- Settle. Repayment triggers autonomous escrow release. Default triggers automatic liquidation. No button clicked, no server involved.
What makes Latch different from lending on EVM chains is what it doesn't use: no smart contracts, no Solidity, no EVM. The entire protocol is composed of six XRPL native primitives that are all live today: Escrow (XLS-85), Oracle (XLS-47), Batch Transactions (XLS-56), Credentials (XLS-70), Payments, and DIDs.
On April 10th, Ripple published XLS-100 Smart Escrow with conditional logic. This is a single primitive that validates our architecture. Latch already delivers a complete lending protocol using six primitives. When XLS-100 activates, it becomes our seventh replacing our monitoring layer with fully native on-chain settlement logic.
Technical Details
Architecture: XLS-85 Escrow locks LP tokens as collateral. XLS-47 Oracle provides on-chain price feeds for collateral valuation and health factor calculation. XLS-56 Batch Transactions enable atomic multi-step operations (escrow creation + RLUSD disbursement in single ledger close). XLS-70 Credentials handle KYC/compliance gating. Native Payments handle RLUSD disbursement and repayment. DIDs provide identity layer.
A monitoring service subscribes to XRPL ledger events, detects repayment transactions, verifies amounts against oracle pricing, and triggers escrow release - autonomous settlement without manual intervention.
Liquidation: Oracle price drop below threshold triggers collateral seizure via escrow condition. Currently via monitoring layer; XLS-100 (when live) moves this logic natively into escrow conditions. Stack: Next.js frontend, xrpl.js SDK, XRPL Testnet. Full loan lifecycle operational: deposit → mint LP → lock collateral → borrow → repay → autonomous release.
Team
2Mateusz Mach
Milosz Mach
Hackathon
HACK THE BLOCK 2026 Paris Blockchain Week XRPL Hackathon
Duration
Apr 11, 6:30 AM - Apr 12, 6:00 PM
Prizes Won
1Prizes Won
1 prize awarded