Amendment XLS: DriftVault — Slippage Rebates for XRP Settlement #605
jamestwilkinson
started this conversation in
XLS Ideas (pre standard proposal)
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
title: DriftVault description: A slippage rebate mechanism for XRP settlement author: Jimbo category: Amendment status: Draft requires: Escrow, XLS-30 (AMM), XLS-100 (Smart Escrow) created: 2026-08-22
Amendment XLS: "DriftVault" — Slippage Rebates for XRP Settlement on the XRP Ledger
Abstract
DriftVault introduces a native ledger primitive that compensates counterparties for adverse XRP price movement (drift) occurring between the time a payment obligation is quoted/locked and the time it settles. It does this utilising a reserve pool (DriftVault) that pays a partial, slippage-linked rebate to a claimant when XRP has depreciated against a reference currency over the holding window of a locked payment.
The DriftVault needs to be funded, so a small fee is proposed on transactions benefitting from the feature:
The mechanism is designed to lower the effective volatility cost of settling in XRP across any payment with a gap between price commitment and settlement — including but not limited to time-boxed, delegated, or agent-initiated payments — without pegging XRP itself, minting a synthetic stable-asset, or requiring off-ledger intermediaries.
Motivation
Any XRP-denominated payment that has a gap between when the price is agreed and when the payment actually settles carries volatility risk that a stablecoin-denominated payment does not. During that gap, XRP's price can move — so the amount committed to no longer matches the amount actually owed by settlement time. A stablecoin payment doesn't have this problem, because its value doesn't move.
This is a general feature of XRP settlement, it applies to routine commerce, business invoicing, and any payment that isn't instantaneously agreed and settled in the same moment — and it may be especially pronounced for AI agents making payments under a budget or spending limit set in advance (e.g. "book this trip, but keep it under $2,000, and you have a few hours to decide"), where the commitment-to-settlement window is explicit and often longer.
That makes XRP a less attractive choice across this whole range of payments, and speeding up settlement doesn't fix it — even a fast settlement still leaves a window where the price can drift before the payment closes out.
Today, participants who want price-stable settlement default to stablecoins (e.g. RLUSD), subordinating XRP primarily to a bridge/liquidity role rather than as a direct settlement medium for commerce generally. This runs against the principle that a blockchain's native asset should be the default choice for mediating core transactions on-chain, rather than routing users toward secondary assets like stablecoins.
The motivation for this amendment is to reinforce native settlement as the preferred mechanism ahead of synthetic settlement. XRP settlement carries properties a stablecoin does not:
This proposal aims to restore XRP's original design intent as the preeminent settlement asset on the chain — without forcing payers to use XRP, and while making native settlement a more competitive choice against the risks and frictions of synthetic settlement.
DriftVault aims to narrow the gap by utilising smart escrow functionality to make XRP settlement risk partially self-insuring at the protocol level, funded by the ecosystem's own transaction volume rather than by a third-party underwriter.
This is deliberately not a proposal to stabilize XRP's price, peg it, or create a synthetic dollar token. It is a compensation mechanism scoped to a bounded holding window, funded by a transparent, auditable on-ledger reserve sufficient to redress the balance and protect this aspect of XRP's utility.
Specification
Overview of flow
DVLock— a smart escrow object that covers the future payment, recording the reference price (ReferencePrice) at lock time (t0).t1).DriftVaultpool.Settlement (steps 5–10) is triggered automatically once the payment condition is met, rather than requiring the destination account to actively submit a claim. This "push" model — where any account (payer, recipient, or a relayer/keeper) can submit the settlement transaction once the condition is satisfied — mirrors how
EscrowFinishcan already be called by any account, not only the destination, once a time or crypto-condition is met. This suits unattended, agent-initiated payments, where no human is necessarily present to trigger a manual claim.New ledger entry types
DriftVaultRepresents a compensation reserve pool. Fields:New transaction types
DriftVaultFundDeposits the DV fee into aDriftVaultas part of transaction processing. Rather than being a standalone user-submitted transaction, this is a protocol-level side effect: the DV fee is assessed on qualifying transactions (per the fee model in the Abstract) and routed into the associatedDriftVault.Balanceat the same time the transaction is processed.DVLockCreateCreates aDVLock, analogous toEscrowCreate. RequiresAmount,Destination,VaultID,Expiration, and readsReferencePricefrom the specifiedOracleat execution time.DVSettleAnalogous toEscrowFinish, but callable by any account (payer, recipient, or a relayer/keeper) once the payment condition is met — not destination-only. On execution:OracleIDusing a time-weighted average (TWAP) over a short window (e.g. last 3–5 ledger closes) rather than a single spot read, to reduce timing-manipulation risk.loss = max(0, (ReferencePrice - CurrentPrice) × Amount).payout = min(loss × CompensationRate, MaxClaimPerTx, remaining MaxClaimPerAccount headroom).Amount(the underlying locked XRP) toDestination.payoutfromDriftVault.BalancetoDestination, ifBalanceis sufficient; otherwise pays out the available remainder and the settlement partially fails-soft (no full transaction failure, since the underlying payment must still complete).DVLockCancelAnalogous toEscrowCancel. Returns locked XRP to the payer ifExpirationhas passed and no settlement was submitted.DriftVaultVote(optional, governance extension) Allows accounts holding a stake in the vault (if implemented as a share-based pool similar toVault/LoanBrokerLP mechanics) to vote onCompensationRateandReserveRatioFloorparameters, parallelingAMMVote.CompensationRate decay
CompensationRateis not static. It is recalculated periodically (e.g. once per N ledgers) as a function of the pool's solvency ratio:If
solvency_ratiofalls belowReserveRatioFloor,CompensationRatedecays smoothly toward a floor (e.g. 10%) rather than dropping abruptly to zero, using a bonding-curve-style function. This avoids a hard cliff in payout expectations during sustained XRP downtrends.Rationale
Escrowsemantics, extended via XLS-100 Smart Escrow functionality, minimizes protocol surface area and reuses ledger mechanics (reserves, expiration, conditional execution) the network already has security experience with, while enabling the variable, oracle-dependent payout calculation that plainEscrowcannot perform on its own.Backwards Compatibility
DriftVault introduces new ledger entry types and transaction types; it does not modify existing
Escrow,AMM, orOraclebehaviour. Existing accounts, escrows, and transaction flows are unaffected. Adoption is opt-in: a payer/destination pair must explicitly choose to route a payment through aDVLockrather than a standardPaymentorEscrow. The new DV fee, however, is proposed to apply to only qualifying transactions (per the Abstract's fee-scope discussion).Security Considerations
Oracleprice feeds. Feeds used forDVLockshould meet a minimum liquidity/update-frequency bar (to be defined). Under the push settlement model, this risk extends to any account eligible to submitDVSettle, not only the destination, since any submitter can choose a favorable TWAP window to trigger within.CompensationRatedecay function bounds this but does not eliminate it; a treasury backstop or fixed-supply cap on total outstandingMaxClaimPerAccountexposure across the ecosystem may be needed as an additional safeguard.Credential-verified accounts (per XLS-70) orPermissionedDomain(XLS-80) participation, especially at higherCompensationRatevalues.Open Questions
All reactions