Skip to content
Paxeer X

Markets engine

Trade on the chain itself

Two native venues, spot and perpetuals, run inside every node. A trade is chain state, not a contract someone deployed.

SpotPerpetuals

The comparison

Same chain, different machinery

Spot swaps against vaults at an oracle price. Perpetuals match orders in a book. Each row below is one place they differ.

SpotPerpetuals
How it prices

Oracle price feed, with a TWAP check against the index.

The order book, at the maker’s price.

How it fills

Swaps against liquidity vaults in a module account.

Price-time priority, earliest order first at each price.

What it holds

Escrow for each resting order, vault reserves for swaps.

USDL cross margin shared across positions.

When resting orders act

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.

What protects you

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

Swaps priced from the oracle

Spot is not an order book. Each swap takes its price from the oracle index, not from the thinness of one pool.

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.

Resting limit and stop orders

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.

Liquidity vaults and shares

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.

Fees
Scale with volume tiers
Price impact
Limited per swap
Per-block work
Bounded
Custody and escrow
Invariant checks

Liquidity providers and traders both use this venue; token balances sit in module custody, settled through the chain's ledger.

Perpetuals venue

A central limit order book

Orders match in price-time priority, and margin is shared across your positions in USDL, the venue's 6-decimal collateral token.

Order types
Limit, market, stop-limit, stop-market, take-profit, stop-loss
Time in force
Good-till-cancelled, immediate-or-cancel, fill-or-kill, post-only
Failed match
Writes nothing

Rules you can predict

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.

One margin account

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.

Funding that follows block time

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

Nine steps, every block

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

  1. 01Insurance fund covers the deficit first.
  2. 02Backstop exposure covers what remains.
  3. 03Bounded forced reduction of profitable counterparties.

When equity falls short

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, in slices

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.

Stops and take-profits

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.

An empty trading desk in blue-hour light with two dark monitors and a pushed-back chair.

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.

Place the first order

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.