← Back to home

Standard CLOB

Standard is an real-time, fully onchain CLOB which provides fair and transparent order flow on blockchain.

Screenshots

Standard CLOB screenshot 1
Standard CLOB screenshot 2
Standard CLOB screenshot 3

Problem Statement

Standard uses a greedy algorithm to show transparent, optimal order flow for every traders without worrying about MEVs. It supports limit order by default, and you can create pair on any asset you want. Just like Uniswap, users need to add a pair with desired price to start with, then add an github issue to Standard's default token list(https://github.com/standardweb3/default-token-list).

Solution

This project uses smart contract to store orders with greedy algorithm. The orders are placed from highest bid to lowest bid in buy side, lowest ask to highest ask in sell side state of an Orderbook.sol contract. Standard uses Ponder as an indexer to get new Order matched/placed event(https://github.com/standardweb3/standard-ponder). Then it uses websocket with Socket.io to report to its frontend.

Hackathon

Superhack 2024

2024

Contributors