MultiversX Tracker is Live!

Why is curve’s slippage larger than uniswap V3?

Etherum Reddit

More / Etherum Reddit 224 Views

Why is curve’s slippage larger than uniswap V3?

In the previous article, we compared the slippage difference between curve and uniswap V3 through data. We can find that under comparable conditions, the slippage of uniswap V3 is smaller than that of curve, but some people want to know why. So today we will start from the technical principles of curve and uniswap to analyze why the slippage of the curve is larger than that of uniswap V3. As we all know, curve adopts the mixed curve equation of constant product and constant sum. As for the constant sum market making curve, the exchange price has no slippage with limited liquidity, but as for the constant product market making curve, the exchange price exists slippage with unlimited liquidity. To achieve lower slippage of exchange for AMM, curve combines the above two curves and proposes a hybrid market making curve:

A(P0x+y)+xy=k

Wherein P0 is the balanced price

y=(k-P0Ax)/(X+A)

Derivation of the above formula can get the price

https://preview.redd.it/kl7jzhxi86591.png?320&format=png&auto=webp&s=de8bc28683bdd9b441eb3e0ec80b8a7c6f1bb6d0

As parameter A approaches infinity

https://preview.redd.it/uqerpzbk86591.png?451&format=png&auto=webp&s=520a793c6c698b58dfd94063a2774eca8f3fa8a4

Therefore, the larger A , the closer the exchange price to P0, that is, the smaller the slippage,

According to the market making curve of uniswap V3,

https://preview.redd.it/h5di3l8m86591.png?439&format=png&auto=webp&s=aee0846ef9e9c3cd767f852f953eb9b19ee2e100

Derivation of the above formula we can get the price

https://preview.redd.it/jbxw7hqn86591.png?747&format=png&auto=webp&s=9736afc3c25f7a015a9ee6530785fd2fd97dc476

m is the magnification factor of x

as parameter m approaches infinity

https://preview.redd.it/wfz3mf4p86591.png?577&format=png&auto=webp&s=e8794c4e1c74707c9853f0c5c233b8eeef0af46e

It can be seen from the above that the exchange price of curve is strongly related to A, while the exchange price of uniswap V3 is strongly related to m, and we know that the amplification factor A in curve is determined internally by the protocol and cannot be changed by external users, while the amplification factor m of uniswap V3 is completely determined by the price range set by the external liquidity provider. In other words, the amplification factor m can theoretically be infinitely. However the amplification factor A of curve cannot be infinitely in order to ensure infinite liquidity. So the slippage of the curve must be larger than that of uniswap V3.

https://preview.redd.it/d7j46djq86591.png?718&format=png&auto=webp&s=abc51381fcbfe876e9db1ddbca2a1325ac185039

https://x3finance.medium.com/why-is-curves-slippage-larger-than-uniswap-v3-e9dd735c88ba

submitted by /u/x3finance
[link] [comments]

Get BONUS $200 for FREE!

You can get bonuses upto $100 FREE BONUS when you:
πŸ’° Install these recommended apps:
πŸ’² SocialGood - 100% Crypto Back on Everyday Shopping
πŸ’² xPortal - The DeFi For The Next Billion
πŸ’² CryptoTab Browser - Lightweight, fast, and ready to mine!
πŸ’° Register on these recommended exchanges:
🟑 Binance🟑 Bitfinex🟑 Bitmart🟑 Bittrex🟑 Bitget
🟑 CoinEx🟑 Crypto.com🟑 Gate.io🟑 Huobi🟑 Kucoin.



Comments