Oracle-priced swaps
Swap between registered tokens at the index price. Stale prices are rejected, and the index is checked against a TWAP before filling. Exact-in, exact-out and native-token swaps are supported.
Markets engine
Two native venues, spot and perpetuals, run inside every node. A trade is chain state, not a contract someone deployed.
The comparison
Spot swaps against vaults at an oracle price. Perpetuals match orders in a book. Each row below is one place they differ.
Oracle price feed, with a TWAP check against the index.
The order book, at the maker’s price.
Swaps against liquidity vaults in a module account.
Price-time priority, earliest order first at each price.
Escrow for each resting order, vault reserves for swaps.
USDL cross margin shared across positions.
Expired, triggered and filled at the end of each block, within per-block bounds.
Triggers checked against fresh mark prices at the end of each block.
Price-impact limit, stale-price rejection, custody and escrow invariant checks.
Funding, liquidation, an insurance fund and auto-reduction of winning positions.
Both venues are reached through EVM precompiles and the LayerX kernel, and both return a signed receipt.
Custody, matching and risk run under consensus
Spot venue
Spot is not an order book. Each swap takes its price from the oracle index, not from the thinness of one pool.

Swap between registered tokens at the index price. Stale prices are rejected, and the index is checked against a TWAP before filling. Exact-in, exact-out and native-token swaps are supported.
Leave a limit, stop-limit or stop-loss order and let it fill later. Funds are escrowed when you place it. At the end of each block the module expires, triggers and fills, with a retry backoff.
Supply liquidity to a spot vault and receive shares for your portion. Vault reserves back the swaps, and governance can reconcile reserves through a dedicated message.
Liquidity providers and traders both use this venue; token balances sit in module custody, settled through the chain's ledger.
Perpetuals venue
Orders match in price-time priority, and margin is shared across your positions in USDL, the venue's 6-decimal collateral token.
Sample diagram
Order book
Funding hour
A post-only order that would cross is rejected. A fill-or-kill order that cannot fill completely is rejected. Matching is capped per order, so every outcome follows a stated rule.
Fund one account and use it across every perpetual market. Initial margin is notional exposure divided by your multiple. Maintenance margin comes from per-market tiers, so larger positions need more.
The venue samples the order-book premium against the index every block and settles each whole hour. A governed cap limits the hourly rate. Payments round up, receipts round down.
Prices and notionals use 18 decimals; USDL uses 6.
Risk handling
Maintenance work is bounded and fault-contained. Each market, account and deficit runs in its own cached context, so one failure drops only its own writes.
Sample sequence
If a cross account’s equity drops below its maintenance requirement, the account is settled, its open orders are cancelled, and its positions are closed by reduce-only market orders against the book.
Large positions close in governed slices with a cooldown. The caller of a manual liquidation is recorded but paid nothing, and end-block processing runs the sweep by itself.
Protective triggers are checked against fresh mark prices at the end of each block. When one fills, its opposite leg is cancelled. Triggers are suppressed while a market is paused or its price is stale.

Start trading
Paxeer Xtrades is the web workspace that places orders against the perpetuals precompile. Each trade returns a signed receipt, final once its block is committed.
Traders get spot, resting orders and margined perpetuals. Developers get Solidity-callable precompiles with fixed ABIs and typed errors. Liquidity providers hold vault shares. Governance sets tick sizes, fees, exposure limits, funding caps and pauses.
An older exchange-intent module remains in the repository for compatibility and returns a retired error; trading runs through the native perpetuals module.