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.
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.