UI to see the order book flash on the right and update every 400ms is just magical
It looks and feels *identical* to a CEX, but underneath, it's a censorship resistant DEX
Welcome to the future
Hmm but fundamentally thatโs the problem of an order book on Dex. The validators always have a first look at the market. Itโs MEV in a much bigger way than the AMMs
All of this isnโt to diminish your accomplishment. Amazing work, cool UI and great go to market. Perfect is impossible. Order books are long term bad design as the space gets more advanced. AMMs were a great first step and we need more innovation.
Long term I think we'll need some new kind of encryption to re-enable order books. There's been some interesting work with time-enabled encryption (decryptable after a certain amount of time). Gnosis has some interesting stuff around multi-asset auctions, reducing frontrunning.
Imagine going to a trader on wallstreet and asking them to trade on your platform but tell them that everytime they place an order someone else can adjust the entire market in real time before applying the order. That's the current state of DEX orderbook.
The difference with AMMs is the deposit of the liquidity happening in the past and the expected slippage being in the 1% range. The more I think about this - it's interesting Nakamoto consensus actually offers some protection because the next miner can see what I did change it.
the next miner can only change it if they're willing to give up a 50% chance of getting the block -- and then why wouldn't *they* then try to take that same MEV?