sol上的dex分别有两种集中流动性算法,fork uniswap的tick计算机制和改进traderjoe思路的bin的计算机制。使用tick的原因很简单,uniswap有完整的一整套向后兼容的架构,跟着uni不犯错。bin是需要探索后续的可扩展性的。但是bin的优势在于降低计算和存储开销,尤其是计算,是指数级降低,这对亚秒级的高性能链上尤为重要。为何sol的交易经常失败,因为0.4s如果计算不出结果就超时了,使用bin机制的,可以大大降低失败频率。bin也更适合高频交易和做市商,或许链上量化越来越多的情况下,bin的算法优势会逐渐凸显出来。
19.75K
4
The content on this page is provided by third parties. Unless otherwise stated, OKX TR 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 TR. 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 TR 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.