CoverFlow

Peer-to-peer on-chain credit protection marketplace on XRPL — hedge your lending exposure with pre-locked collateral, cascading escrows, and a stateless NFT-registry oracle.

Project Information

At a Glance

Peer-to-peer on-chain credit protection marketplace on XRPL — hedge your lending exposure with pre-locked collateral, cascading escrows, and a stateless NFT-registry oracle.

Description

The Problem : XRPL's native lending protocol (XLS-66d) lets anyone borrow and lend on-chain but the broker's First-Loss Capital only absorbs a small fraction of any default (typically ~5% of a full-vault loss). Depositors have no way to hedge the residual credit exposure they still bear.

What CoverFlow Does : CoverFlow is the first peer-to-peer proportional credit protection marketplace built natively on XRPL. It lets depositors (buyers) purchase protection on their vault exposure, and speculators (sellers) earn yield by underwriting that risk all settled directly on the ledger, with no bridge, no custodian, and no off-chain intermediary. Unlike a naive single-escrow implementation on XRPL, which would pay the full notional on any credit event regardless of actual loss, CoverFlow pays the buyer exactly their share of the realised loss, capped at the coverage notional. The seller forfeits only the slices that match the loss. Everyone is treated fairly. Buyers pay a market-driven premium (priced from vault metrics: debt ratio, cover rates, loan health) and receive exactly their proportional share of any realised depositor loss — never overpaid, never underpaid. Sellers lock collateral in 100 cascading escrows and keep the premium plus every slice that wasn't triggered. The oracle reads the vault's realised loss directly from the XRPL ledger state, triggers exactly the right escrows, and burns the registry NFT. Fully automated, fully on-chain.

What Makes It Special : Proportional Settlement via Cascading Escrows A naive credit protection contract uses one big escrow: if the notional is 10,000 RLUSD and the realised loss is only 3%, finishing the escrow pays out 10,000 massively overpaying the buyer. CoverFlow solves this by splitting the seller's collateral into 100 equal escrow slices at contract creation. The oracle computes the buyer's actual share of the loss and triggers exactly that many slices (rounded up). The rest are cancelled back to the seller. Honest settlement, by design.

Stateless NFT-Registry Oracle Active contracts live exclusively as NFTokens minted on the oracle wallet. The NFT's URI field encodes a compact JSON payload carrying everything needed to settle: vault ID, all 100 escrow sequences, buyer's vault share at creation, per-escrow unit amount, expiry, and both addresses. At every sweep the oracle calls account_nfts, rebuilds the full contract registry from scratch, and processes any mature or defaulted contracts. No database, no replay log a crash or redeploy loses nothing because the ledger holds the state.

Fully Native to XRPL No EVM, no bridge, no external oracle network. Every primitive escrows, NFTs, issued currencies, DEX offers is a native XRPL feature. The trigger is a native LoanManage tfLoanDefault transaction on the XLS-66d lending protocol. our website : https://coverflow-phi.vercel.app/ our presentation : https://www.figma.com/design/GUa7Q6L7w3c3bqIyHtVYdC/CoverFlow-%E2%80%94-Presentation?node-id=0-1&t=lww15KjBQKJPkjyN-1

Technical Details

CoverFlow is a peer-to-peer Credit Default Swap (CDS) marketplace built natively on the XRP Ledger, leveraging the XLS-66d lending protocol. It enables vault depositors to hedge their residual default risk the loss not absorbed by the broker's First-Loss Capital by purchasing protection from speculators via an on-chain order book.

The core innovation is a cascading escrow mechanism: at contract creation, the seller's collateral is split into 100 equal XRPL escrows (1% each). Upon a loan default, a stateless oracle reads vault state directly from the ledger, computes the buyer's proportional share of the realized loss, and triggers exactly the matching number of EscrowFinish transactions, cancelling the remainder back to the seller. This ensures payouts are strictly proportional to actual losses, eliminating overpayment.

Contract state is persisted as NFTokens on the oracle wallet, with metadata encoded in the URI field. The oracle rebuilds its view from account_nfts at each swee

Team

3
CD

Clément Darmon

LU

lanwa94 User

HT

Hugo Thomas

Hackathon

HACK THE BLOCK 2026 Paris Blockchain Week XRPL Hackathon

Duration

Apr 11, 6:30 AM - Apr 12, 6:00 PM UTC

View Hackathon Details