A 500k USDC → XRP swap that would have leaked ~80 bps through one pool. Gopnik's path-finder splits it 40/32/18/9/1 across five XRPL venues. Total slippage 19 bps. €3 050 stays with the DAO.
5venues queried
19 bpstotal slippage
€3 050saved vs 1-venue
3.7sto settle
01 / 05
· Input
500k USDC → XRP. Too big for one pool.
Olu manages a DAO treasury. He needs to convert 500 000 USDC into XRP for an upcoming grant cycle. Routing all of that through one pool would move the price by ~80 bps.
Under the hood: Order size > 15% of any single pool's depth. Single-venue execution would clear at a meaningful slippage to the mid.
02 / 05
· Route
5 venues. 0.18 seconds. Every quote.
The path-finder fans out to all five XRPL liquidity venues: the AMM, the native DEX order book, Sologenic's order book, CLOB-2, and the institutional RFQ pool. 0.18 s later, all five quotes are back.
Under the hood: Parallel JSON-RPC calls; each venue returns depth + best-bid/ask + fee schedule. Quotes are aggregated and ranked by effective price net of fees.
03 / 05
· Split
40 / 32 / 18 / 9 / 1 %. 19 bps total slippage.
The optimal allocation: 40% AMM, 32% DEX, 18% Sologenic, 9% CLOB-2, 1% RFQ. Total slippage: 19 bps — saving €3 050 vs the best single venue.
Under the hood: Sequential quadratic programming on the marginal price curve of each venue. Constraint: total fill = input size; objective: maximise XRP received.
04 / 05
· Execute
One signature. 5 legs settle atomically.
Olu signs once. All 5 legs settle in the same XRPL ledger close — or the entire transaction reverts. No partial fills. No MEV exposure between legs.
Under the hood: Uses XRPL's path-finder Payment with multiple paths. Atomic by virtue of XRPL ledger semantics: either every leg lands or none do.
05 / 05
· Receive
874 945 XRP credited. €3 050 saved.
Olu's wallet shows 874 945 XRP. Effective price €1.7494. Saved €3 050 vs the best single venue.
Under the hood: Receipt includes the per-leg fills + on-ledger tx hash. The receipt is downloadable as a signed PDF for audit.
Input
·
01 / 05
Why this matters
61 bps saved
Multi-venue routing saves €3 050 on a 500k swap vs. a single-venue fill.
€3 050 saved
Atomic execution
All 5 legs settle in one XRPL ledger close — or the entire tx reverts.
0.18 s to quote
Every venue queried in parallel. The best route is computed before you sign.
< 200 ms
MEV-resistant
XRPL's canonical ordering removes the sandwich-attack window.
New here? Skim the glossary —
Glossary
Path-finder
An algorithm that queries every liquidity venue and routes for the best price.
Gopnik's path-finder uses XRPL's native rippling + AMM pricing + order-book depth across 5 venues to compute the minimum-slippage split.
Slippage
The gap between the quoted price and the executed price.
Big orders move the price of any single pool. Splitting across 5 venues spreads the impact and tightens slippage.
AMM
Automated market maker — a constant-product pool that quotes prices on demand.
XRPL ships a native AMM (XLS-30); no smart-contract risk.
MEV
Maximal Extractable Value — the rent that miners/sequencers can take by reordering tx.
XRPL's deterministic consensus + canonical ordering eliminates most MEV vectors.
"A 500k USDC swap that would have leaked 80 bps through one pool
lands at 19. Same trade, atomic, MEV-resistant, one signature.
The €3 050 saved went back to the DAO treasury."