Virtual Liquidity
One deposit quotes against every pair. No per-pair pre-funding. Capital never sits idle.
A four-plane system engineered for cross-border stablecoin FX: Virtual Liquidity, single-transaction Smart Order Routing, gasless intent execution, and non-custodial settlement audited by CertiK. Built for the corridors that clear trillions in real economic flow, not speculation.
FX doesn't need price discovery — it needs execution, compliance, and capital efficiency. Two world-firsts power the stack: Virtual Liquidity and single-transaction Smart Order Routing. Neither can be replicated by an AMM, DEX, or legacy settlement network.
One deposit quotes against every pair. No per-pair pre-funding. Capital never sits idle.
Best execution across the full book. Generalised flow with gain factors. All-or-nothing settlement.
Users sign one EIP-712 intent. Relayers assemble. Sandwich attacks collapse at the batch boundary.
Funds never leave user wallets until on-chain settlement clears. Formally specified in TLA+. Continuous monitoring.
Across 30,000+ pair combinations, only a fraction have direct stablecoin liquidity. For everything else — MYR → BRL, IDR → NGN, KRW → ZAR — the router stitches a path through the most liquid intermediates and settles it atomically in a single binding transaction.
Sera's V1 codebase has been independently measured using COCOMO and SLOC — the same methodology private-equity firms apply during technical due diligence. The result: 332,557 lines of production code across 1,925 files, with a cyclomatic complexity score of 20,477.
Replicating this stack from scratch would cost an estimated US$12.01 million in organic development and require 35+ months of concentrated effort by a 30-engineer team.
Complexity at this scale is not boilerplate. It is the algorithmic density of an order-matching engine, a settlement state machine, and a multi-venue routing layer compiled into one execution stack.
Most AMMs lock LPs into a single pool — your USDC sits in USDC/EURC, deaf to the ten other corridors that need it. Sera indexes every LP position into a unified balance sheet, then synthesises quotes against every supported pair on demand. A single USDC deposit can back swaps in BRLA→MXNB, XSGD→IDRX, and EURC→JPYC simultaneously.
Every existing on-chain FX attempt is built on a fork of a generic AMM — Uniswap-style constant-product (x·y=k), Balancer-style weighted pools, or Curve-style stableswap invariant. They aren't poorly built. They're the wrong primitive for the job. None were designed for FX, and they all share one fatal flaw for a basis-point market: asymmetric price discovery. Pricing is fair in only one direction of the curve; the reverse blows out.
Asymmetry is just the headline. The deeper failures are structural. AMMs are single-leg only — they can't atomically route SGD → USDC → KRW, and FX without multi-hop is half a product. They're LP-driven, not market-maker driven — passive depth profiles can't service institutional flow. They're capital-inefficient at scale, needing 10×+ TVL to match the spreads of an off-chain venue. And slippage scales with size, which makes them unworkable for the million-dollar tickets institutional FX runs on.
They also force every cross-currency trade through a USD intermediary, paying the spread twice.
Sera is a purpose-built CLOB, not an AMM. Two-sided pricing. Market-maker depth. Multi-leg atomic routing — direct N×N pairs without a USD bottleneck. Virtual Liquidity makes it ~100× capital-efficient against any pooled architecture.
Global FX is $9.6 trillion a day. Forking an AMM won't service it.
Side-by-side against the alternatives: generic AMMs forking Uniswap or Curve, CEX-style remittance rails like Wise, and crypto-native CLOB DEXes built for derivatives, not currency.
| Sera · CLOB | AMM fork | CEX / bank rail | CLOB DEX (derivs) | |
|---|---|---|---|---|
| Price discovery | Two-sided MM book | Bonding curve · asymmetric | Internalised | Two-sided · derivs-tuned |
| Multi-leg atomicity | Native · single tx | Single-leg only | Off-chain reconciliation | Not supported |
| Capital efficiency | >100× · Virtual Liquidity | 1× · per-pair pooled | High · but pre-funded | Margin-based |
| Settlement custody | Non-custodial · ~1 block | Non-custodial | Custodial · T+1 to T+3 | Non-custodial · synthetic |
| MEV exposure | Intent-batched · resistant | Sandwich-vulnerable | N/A · off-chain | Sequencer-mitigated |
| USD bottleneck | Direct N×N pairs | Forces USD hop | Correspondent banking | USD-quoted only |
| Pairs supported | 30k+ synthetic + direct | Per-pool | ~40 corridors | ~50 perps |
| Cost at $1M | Zero slippage · binding quote | +108 bps reverse · slippage | Hidden in spread | Order-book dependent |
| Audit · third party | CertiK · TLA+ spec | Varies | Regulator-attested | Varies |
For exotic corridors with no direct pair (say BRLA→IDRT), the router stitches the trade through the most liquid intermediates, settles it in a single transaction, and presents one binding quote. No slippage drift. No failed routes. No manual hop selection. The whole route lives or dies in one transaction.
Sera abstracts gas at the protocol level. Fees are deducted in the swapped stablecoin, paid by the relayer, and reconciled out-of-band. Users sign one EIP-712 intent; the relayer assembles the transaction. Order intents are batched and revealed only at execution, which collapses the sandwich-attack surface. For institutional flow, Sera supports private mempool routing through a permissioned relayer set.
Every swap on Sera moves through four separable planes. Each is independently upgradeable, independently monitored, and independently auditable. Below: the live data flow from user signature to on-chain settlement.
Every contract path specified in TLA+ before implementation. Invariants property-tested in CI on every commit.
CertiK-audited across the full contract surface. Differential audits on every protocol upgrade. Reports public.
Multi-source reference band — 50+ central banks, 10+ PSPs, 10+ FX houses. Tracks oracle deviation, LP skew, mint/burn anomalies, gas-price irregularities. On-call paged within 30 seconds.
Bug bounty live on Immunefi. Collaborative audits. Researchers contribute continuously to the security posture.
\* Settlement.tla — invariant: atomic all-or-nothing
\* Property: no partial fills, no orphan transfers
MODULE Settlement
EXTENDS Naturals, Sequences
VARIABLES routes, executed, refunded
Atomicity ==
\A r \in routes:
\/ r \in executed
\/ r \in refunded
\* Never both. Never neither.
SpecOK == [](Atomicity /\ NoDoubleSpend)V2 extends the protocol with a Dutch auction AMM purpose-built for foreign exchange. Details on release.
Fintechs and stablecoin issuers ship cross-border products on Sera without the banking overhead.
Sera's API handles pay-in, FX swap, and pay-out in a single call. No license stack to assemble, no liquidity to source, no settlement risk.
Read the docs →List on Sera's book to route through every remittance and B2B flow the protocol carries. Non-USD stablecoins get immediate international utility.
Talk to BD →