This is the WeiThe best data structures for your orders.
Segmented Segment Tree.
A Segmented Segment Tree keeps track of limit orders made, canceled, and claimed while dramatically minimizing storage writes. This innovation is the key that enables scalable order books fully on-chain.
Octopus Heap.
An Octopus Heap keeps track of the price points limit orders were made to enable efficient market orders. Thoughtful bit-level optimizations and design choices were made to make the most efficient heap for order books.
Trustless
Empowers you to retain full control over your assets, orders, and more. Not your keys, not your coins.
Permissionless
Censorship-resistant participation in trading, providing liquidity, or launching new markets. Decentralized and unstoppable.
Composable
Use Clober as a building block for your own DeFi protocol.