Mysten validators are shipping 1.52 () today, bringing a HUGE upgrade for not only @DeepBookonSui but also Aftermath's fully onchain perpetual product. I wanted to write a quick thread before some cmo/sui kol writes some poorly researched slop that misrepresents this feature which I think this is one of the best developments coming out of Mysten right now. There's been a lot of discussion about prioritizing cancels following Hyperliquid's success (I'm a big fan of HL). However, I believe that approach only works in Hyperliquid's specific environment, not on a general-purpose L1 like Sui. One of the things that I personally don't like about cancel prioritization is my concern about potentially toxic cancels where mms could game the system by waiting for cancels or canel if fill isn’t good for them or something that negatively impacts takers. One thing I'm happy about is that engaging in spoofing behaviors aren't as easy on Aftermath since we're fully onchain. What this PR actually does is it exposes reference gas price (RGP) and actual gas price to smart contracts through a new TxContext function. This enables contracts to access the current epoch's minimum gas price (set by validators WHICH NEED TO BE LOWERED!!) and what users actually paid. But here's why it's a big deal to me and deepbook, this creates the foundation for contract level txs prioritization. Meaning I can implement logic where makers who pay above a certain gas price threshold (customizable in the contracts) get their cancels processed with priority over standard taker transactions. Since makers can see both the reference price and know they need to pay at least X amount above it, this creates a fair, transparent, market driven prioritization mechanism without the toxic gaming possible in closed systems. This imo is a really good hybrid solution!
Typo from me. "cancels are only prioritized over maker, not over taker"
Show original
7.39K
96
The content on this page is provided by third parties. Unless otherwise stated, OKX is not the author of the cited article(s) and does not claim any copyright in the materials. The content is provided for informational purposes only and does not represent the views of OKX. It is not intended to be an endorsement of any kind and should not be considered investment advice or a solicitation to buy or sell digital assets. To the extent generative AI is utilized to provide summaries or other information, such AI generated content may be inaccurate or inconsistent. Please read the linked article for more details and information. OKX is not responsible for content hosted on third party sites. Digital asset holdings, including stablecoins and NFTs, involve a high degree of risk and can fluctuate greatly. You should carefully consider whether trading or holding digital assets is suitable for you in light of your financial condition.