On-Chain Order Book Design

Design

The design of an on-chain order book involves structuring data storage within smart contracts to minimize gas consumption while supporting the necessary market operations like order insertion, cancellation, and matching. This necessitates creative data encoding and efficient state management to handle the depth required for liquid derivatives markets. A poor design leads to prohibitive transaction costs and low market participation.