LUX
All Chains
D

D-Chain (DEX)

DeFi ChainLinear Consensus

Central limit order book, concentrated liquidity AMM, and perpetual futures. 200ms block times, cross-chain atomic swaps, and MEV protection by design.

Overview

The DEX Chain is a purpose-built blockchain for decentralized exchange operations. It combines a central limit order book (CLOB) with concentrated liquidity AMM pools and perpetual futures — all on a single chain with 200ms block times.

MEV protection is built into the consensus layer, not bolted on as an afterthought. Transaction ordering is fair by design, preventing front-running and sandwich attacks that plague other DEX platforms.

Cross-chain atomic swaps allow trustless trading between assets on any Lux chain without bridges or wrapped tokens. The matching engine runs as a native precompile for maximum throughput.

Technical Specifications

Block Time200ms
Order TypesLimit, Market, Stop, IOC
SettlementAtomic (same block)
MEV ProtectionConsensus-level
Matching EngineNative precompile
Chain TypeOptional

Key Features

  • Central limit order book (CLOB)
  • Concentrated liquidity AMM
  • Perpetual futures
  • MEV protection at consensus level
  • Cross-chain atomic swaps
  • 200ms block times

SDK Example

Quick start using the Lux JavaScript SDK.

d-chain-example.ts
import { DexClient } from 'luxnet/dex'

const dex = new DexClient('https://dex.lux.network')

// Place a limit order
const order = await dex.placeLimitOrder({
  pair: 'LUX/USDC',
  side: 'buy',
  price: '42.50',
  amount: '100',
})