Technical Architecture
Overview of X10 Architecture
X10 operates as a hybrid Central Limit Order Book (CLOB) exchange. While order processing, matching, position risk assessment, and transaction sequencing are handled off-chain, trade settlement occurs on-chain through the StarkEx Layer 2 engine.
![](https://docs.x10.exchange/~gitbook/image?url=https%3A%2F%2F3693216602-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FThTVaNuyiBCaumOB7kqP%252Fuploads%252FenIpP3imhvg41a0srB5T%252FX10%2520Architecture%25201228x690%2520-%2520Flat%2520Version.png%3Falt%3Dmedia%26token%3Dc67a6cf6-b490-4420-8153-47f57cfc047f&width=768&dpr=4&quality=100&sign=ce5fc6ce&sv=1)
StarkEx, built by Starkware, is a battle-tested scalability solution that brings lightning-fast transaction processing, guaranteeing an unparalleled trading experience. This is achieved while preserving complete trustlessness and transparency through three key mechanisms embedded into StarkEx:
On-chain validations of the trading logic ensure that fraudulent or incorrect transactions, including liquidations, contrary to the on-chain trading logic are never permitted.
The mark prices, which determine the liquidability of positions, are obtained from multiple independent oracle providers to prevent potential price manipulation and ensure fair and accurate asset valuation within our ecosystem. X10 utilizes 5 Stork nodes to define the median mark price.
Publication of zero-knowledge (ZK) proofs on the Ethereum Layer 1 blockchain validates Layer 2 transactions, ensuring both their integrity and security.
For deeper insights, explore Starkware's comprehensive documentation.
Benefits of X10 Hybrid Model
The decision to adopt a hybrid model for X10 is a strategic design choice aiming to overcome the limitations of both fully centralized and decentralized on-chain order book models:
Challenges with Centralized Exchanges: Custodial control over user funds ('not your keys - not your coins'), lack of transparency over assets and liabilities, and susceptibility to trading manipulation.
Challenges with On-chain Order Books: Risk of front-running and higher latency due to transaction validation by multiple parties. Fully decentralized exchanges will always struggle to match the performance of centralized venues, which is crucial for liquidity.
X10's hybrid model leverages the strengths of both centralized and decentralized components:
Self-Custody, On-chain Settlement and Oracle Prices: Users retain full custody over their funds. All trades are settled on the blockchain with smart contract validations to prevent fraudulent transactions. Additionally, mark prices from independent oracle providers mitigate the risk of manipulation
Off-chain Trading Infrastructure: Off-chain order matching and risk engines, combined with a unique settlement architecture, deliver remarkable performance in terms of throughput, end-to-end latency, and trade finality. This performance is comparable to centralized exchanges and superior to other hybrid exchanges or decentralized exchanges.
For more details on X10 Technical Architecture, please read the blog X10 Architecture.
Last updated