Guiding question
Why doesn't the bank need to hold the bridge asset long term?
Short answer: in an On-Demand Liquidity (ODL) payment, XRP is not a store of value the bank keeps on its balance sheet. It is a vehicle the payment rides on for one trip. The sending side turns dollars into XRP, the XRP crosses the XRP Ledger in seconds, and the receiving side turns it straight into pesos. Because the conversion back to fiat happens on arrival, nobody in the payment chain needs a pre-positioned peso balance, and the bank never needs a standing XRP position. Its price exposure is limited to the short window between buying and selling. The inventory that does sit somewhere sits with market makers, exchanges and, in Ripple's documented setup, Ripple itself. 13 14
Lesson 1 priced the cost of the prefunded model: capital locked equals daily outflow times days of float, and carry cost per dollar equals D × r ÷ 250. This lesson walks the alternative on the same US to Mexico payment and ask where that cost goes when the prefunded balance disappears. That question sits inside the wider official effort to cut the cost and time of cross-border payments, set out in the G20 targets 22, tracked in the FSB's 2025 progress report 23, and framed earlier in BIS work on cross-border retail payments. 24
The ODL flow, step by step
Same example, new route
The Austin importer still pays the Monterrey supplier the equivalent of USD 50,000 in pesos. This time the importer's payment provider (a bank or licensed payment company that is an ODL customer) routes the payment through XRP instead of a peso nostro.
The chain at a glance
Importer (USD) → Sending provider → US exchange or liquidity provider (USD to XRP) → XRP Ledger (XRP moves) → Mexican exchange, for example Bitso (XRP to MXN) → SPEI → Supplier's bank (MXN)
Step 1: Quote and lock
- The sending provider asks for a quote. Ripple's ODL docs say the quote returns an FX rate that already factors in negotiated incentives and fees, and that ODL quotes expire after 70 minutes. 13
- When the provider accepts, ODL generates a payment ID and locks the quote. Compliance data on the originator and beneficiary travels with the acceptance. 13 14
- Who holds what: the importer's USD is still at the provider. Nothing has been bought yet.
Step 2: USD becomes XRP at the source
- In the generic flow, USD sitting in the provider's account at a US exchange or liquidity provider buys XRP. Ripple's setup guide tells customers to pre-fund their source exchange account in USD for exactly this purpose. 16
- Ripple also documents a variant: before payments start, Ripple funds the sending institution's XRP wallet with a predetermined amount of Ripple-owned XRP, under a "Commit to Sell Agreement", and later invoices the sender for payments in aggregate (T+1 invoicing, subject to credit limits). 13 14 Ripple's current docs also list a "Wallet Funding" option where the customer funds payments in stablecoin first. 15
- Who holds what: in the generic flow the provider holds XRP for the seconds between the buy and the transfer. In Ripple's prefunded-wallet variant, the XRP inventory belongs to Ripple and the provider owes Ripple dollars on the next invoice.
Step 3: XRP crosses the XRP Ledger
- The XRP moves from the sending wallet to the receiving exchange wallet as a ledger payment. xrpl.org says new ledger versions usually close about every 3 to 5 seconds, and that a direct XRP payment typically completes in 8 seconds or less. 3 4
- Who holds what: for those seconds the XRP is in flight on a public ledger. When the payment lands in a validated ledger, the receiving exchange wallet holds it.
Step 4: XRP becomes MXN and is paid out
- The receiving exchange sells the XRP for pesos. Ripple's docs list Bitso for USD and MXN, with MXN payout by SPEI described as "real time 24/7 to Mexican bank accounts" (a vendor description). 16
- The pesos go out over SPEI to the supplier's bank, the same domestic system that settled the last hop in Lesson 1.
- Who holds what: the exchange holds XRP for the moments between deposit and sale, then holds pesos briefly before payout. The supplier ends up with MXN. Nobody needed a peso account funded days in advance.
Holding-period summary
| Party | What it holds | For how long |
|---|---|---|
| Importer | USD | Until it pays the provider |
| Sending provider | USD at the source exchange, or an invoice owed to Ripple | Home-currency balance or one-day credit; XRP only for seconds, if at all |
| Ripple (documented variant) | XRP inventory it places in sender wallets | Ongoing; this is Ripple's inventory, not the bank's |
| XRP Ledger | XRP in flight | About 3 to 5 seconds per ledger close |
| Receiving exchange (e.g. Bitso) | XRP, then MXN | From deposit to sale, then to payout; no public end-to-end figure |
| Market makers | Two-sided XRP and fiat inventory | Ongoing, by design |
| Supplier | MXN | Final |
- Step 1Sender requests a quote; ODL quotes expire after 70 minutes
- Step 2Local currency converted to XRP on the source exchange
- Step 3XRP moves across the XRP Ledger
- Step 4XRP sold for payout currency on the destination exchange
- Step 5Payout partner credits the beneficiary
Why the bank doesn't hold XRP long term
Held for seconds, not days
The bank's job in this payment is to deliver pesos, not to own XRP. It buys XRP only to sell it again on the far side. In the generic flow the holding period is the time from the source trade to the destination sale. The ledger leg is seconds; exchange crediting and order execution add some time, and no public source gives an end-to-end average, so this lesson does not invent one. In Ripple's prefunded-wallet variant, the bank may never own XRP at all; it draws down Ripple's XRP and settles in dollars on the invoice. 13
Price exposure limited to the transfer window
If the bank holds XRP for a short window, its exposure is the price move during that window, not the long-run price of XRP. The quote is locked before execution, which per Ripple's docs fixes the rate the customer sees. The leftover risk of a price move during execution has to sit with whoever is on the other side of that quote. Ripple's docs do not spell out how that risk is shared among Ripple, exchanges and market makers, so treat that split as not public. 13
Illustration, not data model: if XRP moved 0.10% against you during the window on a USD 50,000 payment, the cost would be USD 50. Shorter windows mean smaller moves on average, which is why speed matters for cost, not just convenience.
No prefunded destination balance
This is the core link to Lesson 1. Prefunding exists because pesos must already be in Mexico when the payment is sent. ODL buys the pesos on arrival from the Mexican exchange's market. In Lesson 1's language, days of float in the destination currency go toward zero, so capital locked in that corridor goes toward zero.
One honest caveat: ODL does not erase every balance. The source exchange account is pre-funded in USD, or Ripple extends T+1 credit, or the customer pre-funds a stablecoin wallet. The difference is that this money sits at home, in the home currency, and one pool can serve many destination corridors instead of one pool per corridor. 15 16
- Pre-funded source account
- USD held at the source exchange, ready to buy XRP
- Ripple credit
- Ripple-owned XRP in the sender wallet, invoiced T+1, subject to credit limits
- Wallet Funding
- Customer pre-funds a stablecoin wallet
Each option keeps money at home, in the home currency, where one pool can serve many corridors.
Source: Ripple Docs, Funding Methods
Who does hold inventory
- Market makers keep two-sided inventory of XRP and fiat on exchanges so buyers and sellers can trade instantly. Their inventory and risk appetite set the depth of the order book, which sets your slippage. lesson
- Exchanges hold customer balances and their own working capital so they can credit deposits and pay out over SPEI.
- Ripple, in its documented ODL setup, holds XRP and places it in sender wallets before payments begin.
The risk of holding XRP does not vanish. It moves from the paying bank to specialists who are paid, through spreads and fees, to carry it. lesson
Settlement time and finality on the XRP Ledger
Ledger close time
- New ledger versions usually close about every 3 to 5 seconds (xrpl.org, Ledger Close Times). The official close time is rounded to a 10-second resolution, so ledger timestamps are coarser than the actual pace. 3
- xrpl.org's homepage states transactions settle in 3 to 5 seconds. Its Direct XRP Payments page says a direct XRP payment typically completes in 8 seconds or less. Ripple's product page also says Ripple Payments moves money "in as little as 3-5 seconds" (vendor claim). 5 4 20
What finality means here
- Validators agree on a set of transactions, every server applies them in the same order, and the ledger is declared validated when a supermajority of trusted validators agree on the result. xrpl.org gives the threshold as 80%, noting it is subject to change. 6 7
- Once a transaction is in a validated ledger, its result is immutable. There is no waiting for extra confirmations on top, as with probabilistic chains. 8
- Results returned before validation are provisional. A payment can look successful and then fail, or the reverse. xrpl.org tells institutions to act only on results in validated ledgers. 8
- A failed transaction can also be final: a "tec" result in a validated ledger means the payment did not happen, but the small XRP fee was still burned. 10
- Setting LastLedgerSequence gives a hard deadline. xrpl.org recommends the last validated ledger index plus 4 for automated systems. If that ledger is validated and your transaction isn't in it, it failed and can never appear later. At 3 to 5 seconds per ledger, that deadline is roughly 12 to 20 seconds away (lesson arithmetic, not an xrpl.org figure). 9 model
Ledger finality versus payment finality
The XRP leg is final in seconds. The fiat legs are not on the ledger. The USD funding leg and the SPEI payout follow their own rules and timing. When Ripple says a payment is complete, its docs define COMPLETED as verified funds reaching the end beneficiary, which is a later and broader event than ledger validation. 17
New ledger version closes about every
3 to 5 seconds
Typical XRP Ledger close time
Source: XRPL.org, Ledger Close Times
Failure recovery: what happens if a leg fails
On-ledger: all or nothing
- xrpl.org says cross-currency payments within the XRP Ledger are fully atomic: the payment fully executes or no part of it executes. The ledger can also auto-bridge such payments through XRP order books. 2 12 If the ledger's order books and paths can't deliver the full amount within the sender's SendMax, the payment fails with codes such as tecPATH_PARTIAL or tecPATH_DRY. No half-delivered payment is left behind. 1 10
- In the ODL flow described in Ripple's docs, the USD to XRP and XRP to MXN trades happen on exchanges, off the ledger. The ledger leg is an XRP-to-XRP transfer between wallets. That transfer is also all or nothing: it is either in a validated ledger with tesSUCCESS, or it did not move the XRP. The atomic guarantee covers the ledger leg, not the whole three-leg trip. 13 lesson
- One integrity rule: a payment flagged as a partial payment can succeed while delivering less than its stated Amount. xrpl.org warns receivers to read the delivered_amount field, never the Amount field. This is a known exploit against careless integrations. 11
Off-ledger: retries, rollbacks and manual recovery
Ripple's ODL docs describe how failures are handled:
- Receiver short of liquidity: the payment moves to SETTLEMENT_DECLINED, funds roll back from the sender's hold account, and the sender can retry once the liquidity issue is fixed. If the payment expires first, it becomes FAILED. 17
- Trade or transfer failure at an exchange: ODL has specific error codes, for example ODL15000 "A trade failed on exchange" and ODL15001 for a failed outbound transfer. 17
- Failure after XRP has left the source: an optional feature called failure conversion (off by default) pushes the payment forward until value lands in fiat. Per Ripple's docs, if the failure occurs after XRP withdrawal and before deposit confirmation, it retries every 30 minutes for up to 12 hours. If it occurs during the sale at the receiving exchange, it retries every hour for up to 24 hours. 18
- Payout failure, such as a misspelled name or a bad CLABE account number: the payment is labeled OUTBOUND_TRANSFER_FAILED_RECOVERABLY, and the sender can amend the beneficiary details and have the exchange retry. If retries run out, the label becomes OUTBOUND_TRANSFER_FAILED_IRRECOVERABLY, the payment is FAILED, and the sender must recover the funds manually from the destination exchange. 19
- Returns: for fiat flows, a receiver can send a return payment that runs the route in reverse; when it completes, the original payment moves to RETURNED. 17
What that means for risk
The ledger leg rarely leaves you stuck between states. The real failure risk sits at the edges: exchange outages, liquidity gaps, compliance holds and payout data errors. Notice that the failure conversion timings above stretch the bridge window from seconds to hours in a failure case. That is the scenario where price exposure on XRP can become material, which is why the retry logic and who bears that risk matter in any ODL contract. lesson
- Failure after XRP withdrawal, before deposit confirmation
- Retries every 30 minutes for up to 12 hours
- Failure during the sale at the receiving exchange
- Retries every hour for up to 24 hours
Optional feature, off by default, that pushes a failed payment forward until value lands in fiat.
Source: Ripple Docs, Failure Conversion
Where the cost moves
ODL removes the carry cost D × r ÷ 250 on the destination balance. It adds a set of per-trade costs:
- Trading spreads: you buy XRP at the ask on one side and sell at the bid on the other, so you cross two spreads. 12
- Exchange fees: each leg pays a trading fee. Bitso's public retail schedule for MXN markets ranges from 0.78% taker at the lowest volume tier to 0.13% taker above 150 million MXN of 30-day volume. ODL customers use business pricing, which is negotiated and not public. 21
- Order-book depth and slippage: a large order eats through several price levels. Thin books mean the average fill is worse than the top quote.
- Price swings during the window: the move in XRP between buy and sell. Small on average for a seconds-long window, larger if a failure stretches the window.
- Service fees: Ripple's quote factors in negotiated fees and incentives. The size is not public. 13
The rewritten cost equation per dollar sent:
- Prefunded route: carry = D × r ÷ 250, plus the FX conversion and intermediary costs of the bank route.
- ODL route: spread + fees + slippage + price-window cost, with carry on the destination balance close to zero.
Deliverable: ODL vs prefunding all-in cost comparison
Assumptions
| Input | Value | Status |
|---|---|---|
| Corridor | US to Mexico, USD to MXN | Same as Lesson 1 |
| Carry cost per USD | D × r ÷ 250 | Formula from Lesson 1 |
| Days of float (D) | 1 to 3 | Lesson 1 grid |
| Opportunity rate (r) | 2% to 5% | Lesson 1 grid |
| ODL Tight scenario | 13 bps = spread 4 + fees 6 + slippage 2 + price window 1 | Assumption. Assumes negotiated institutional pricing well below public retail tiers |
| ODL Mid scenario | 44 bps = spread 10 + fees 26 + slippage 5 + price window 3 | Assumption. Fees anchored to two legs at Bitso's top public retail taker tier (0.13% each) |
| ODL Wide scenario | 95 bps = spread 20 + fees 50 + slippage 15 + price window 10 | Assumption. Thin books or small volume |
| Ripple service fee | Not modeled separately | Not public |
None of the ODL figures are published by Ripple or the exchanges for ODL flows. They are teaching assumptions so you can see the shape of the trade-off. Replace them with real quotes the moment you have them. Every number in the tables below is model output.
Carry saved minus ODL cost (bps per USD sent)
Negative means prefunding is cheaper on these two items alone.
| Days, rate | Carry saved | vs ODL Tight (13) | vs ODL Mid (44) | vs ODL Wide (95) |
|---|---|---|---|---|
| 1 day, 2% | 0.8 | -12.2 | -43.2 | -94.2 |
| 1 day, 5% | 2.0 | -11.0 | -42.0 | -93.0 |
| 2 days, 2% | 1.6 | -11.4 | -42.4 | -93.4 |
| 2 days, 4% (Lesson 1 base) | 3.2 | -9.8 | -40.8 | -91.8 |
| 2 days, 5% | 4.0 | -9.0 | -40.0 | -91.0 |
| 3 days, 2% | 2.4 | -10.6 | -41.6 | -92.6 |
| 3 days, 5% | 6.0 | -7.0 | -38.0 | -89.0 |
On the USD 50,000 payment at the base case: carry saved is about USD 16. ODL Tight costs about USD 65, Mid about USD 220, Wide about USD 475.
Breakeven 1: carry alone
ODL wins on carry alone only when its cost is below D × r ÷ 250. Rearranged, you need D × r ≥ ODL cost × 250.
| ODL scenario | D × r needed | Days of float needed at 5% | Rate needed at 3 days |
|---|---|---|---|
| Tight, 13 bps | 0.325 | 6.5 days | 10.8% |
| Mid, 44 bps | 1.10 | 22 days | 36.7% |
| Wide, 95 bps | 2.375 | 47.5 days | 79.2% |
Inside Lesson 1's grid, carry savings alone never beat even the Tight scenario. A liquid, low-rate, short-float corridor like USD to MXN at a big bank is close to the worst case for an ODL pitch built on carry alone. model
Breakeven 2: carry plus the costs ODL also replaces
The fair comparison credits ODL with every cost of the bank route it removes, not just carry. Call that T: the FX conversion spread, intermediary deductions and operational buffers of the correspondent route, in bps. ODL wins when ODL cost < carry + T.
| T (assumed traditional costs replaced) | Breakeven ODL cost across the grid | Tight (13) | Mid (44) | Wide (95) |
|---|---|---|---|---|
| 0 bps | 0.8 to 6.0 | Loses | Loses | Loses |
| 10 bps | 10.8 to 16.0 | Wins where carry is above 3 bps | Loses | Loses |
| 25 bps | 25.8 to 31.0 | Wins | Loses | Loses |
| 50 bps | 50.8 to 56.0 | Wins | Wins | Loses |
| 100 bps | 100.8 to 106.0 | Wins | Wins | Wins |
For scale only: Lesson 1's teaching fee stack for this payment ran 0.6% to 1.7% (60 to 170 bps) at the client level, mostly FX margin. That is a client price, not a bank cost, so it is not a clean T. It does show that the real contest is ODL's per-trade cost against the whole correspondent stack, not against carry by itself. model
How to read it
- Carry is a thin slice in a cheap corridor. ODL earns its keep by replacing FX margin, intermediary fees and buffers too, or in corridors with high rates, long float and many small destinations.
- The Tight versus Wide gap is mostly fees and depth. Exchange liquidity in the specific pair (XRP/MXN here) is the variable to watch.
- To rerun it: plug in D, r, a real ODL quote in bps, and your best estimate of T.
Model: spread, exchange fees, slippage and price window assumptions from the lesson
Source: Bitso, Trading fees
Why it matters for the XRP utility thesis
- The guiding question cuts both ways. The bank doesn't need to hold XRP long term, and that is the design. Utility demand from ODL is flow demand: XRP bought and sold within seconds or minutes. It is not a reason for banks to keep XRP on balance sheet. Any link from payment volume to price runs through market makers and exchanges who hold inventory, and how strong that link is remains an open question that should not be assumed. lesson
- The win zone is specific. On the numbers above, the strongest case is corridors where rates are high, float is long, traditional FX is expensive, and the payer runs many corridors from one home-currency pool. The weakest case is a deep, cheap corridor at a large bank. model
- Competition is inside the house. Ripple's own docs list stablecoin wallet funding for ODL, and its product page describes settling in fiat or stablecoins such as RLUSD. 15 20 XRP is a documented bridge asset, not the only bridge Ripple offers.
- What to watch: published ODL pricing in bps, XRP order-book depth in destination currencies, and disclosures from providers on D and r. Those turn this model from assumptions into evidence. lesson
- Real estate parallel: a bridge loan is cheap per day and expensive if the bridge stays open. Same with a bridge asset. The cost is fine when the window is seconds and painful when a failure keeps it open for hours. lesson
Sources
- XRPL.org: Cross-Currency Payments (atomicity, USD to XRP to MXN auto-bridging example)
- XRPL.org: Auto-Bridging
- XRPL.org: Ledger Close Times (3 to 5 seconds, 10-second close time resolution)
- XRPL.org: Direct XRP Payments (8 seconds or less)
- XRPL.org home page (transactions settle in 3 to 5 seconds)
- XRPL.org: Consensus Protocol
- XRPL.org: Consensus Structure (validation, 80% supermajority)
- XRPL.org: Finality of Results
- XRPL.org: Reliable Transaction Submission (LastLedgerSequence plus 4)
- XRPL.org: tec Codes (tecPATH_PARTIAL, tecPATH_DRY)
- XRPL.org: Partial Payments (delivered_amount)
- XRPL.org: Offers
- Ripple Docs: Using On-Demand Liquidity (vendor: Ripple-funded XRP wallet, quote lock, 70-minute quote expiry)
- Ripple Docs: ODL Use Cases (vendor: payment flow steps, aggregate invoicing)
- Ripple Docs: Funding Methods (vendor: Wallet Funding in stablecoin, T+1 invoicing)
- Ripple Docs: Connecting to Digital Asset Exchanges (vendor: pre-fund source account, Bitso MXN via SPEI)
- Ripple Docs: Payment States (vendor: SETTLEMENT_DECLINED rollback, RETURNED)
- Ripple Docs: Failure Conversion (vendor: retry timings)
- Ripple Docs: Amend Outbound Instructions (vendor: payout failure handling)
- Ripple: Cross-Border Payments product page (vendor claim: 3 to 5 seconds; fiat and stablecoin settlement)
- Bitso: Trading fees (public retail fee schedule)
- FSB: Targets for addressing the four challenges of cross-border payments (2021)
- FSB: G20 Roadmap consolidated progress report for 2025
- BIS CPMI: Cross-border retail payments (2018)
All ODL cost scenarios, the T values and the price-window illustration are labeled teaching assumptions, not sourced figures. Ripple statements are vendor claims or vendor documentation. Assumption-based math is marked model; unsourced reasoning is marked lesson.