Skip to main content

How Does the Concept of “Slippage” Mathematically Relate to the Reserve Ratio Change?

Slippage is mathematically derived from the change in the reserve ratio caused by the trade. The initial price is the ratio of the reserves before the trade.

The final price is the ratio after the trade. Slippage is the difference between the initial price and the average execution price, which is a function of the path taken along the x y=k curve.

Larger reserve ratio changes, resulting from larger trades relative to the pool size, lead to higher slippage.

How Does the Reserve Ratio Affect the Intrinsic Value of a Collateralized Stablecoin?
What Are the Differences between Single-Function and Cross-Function Reentrancy Attacks?
Why Is the Actual Execution Price for a Large Trade Slightly Worse than the Instantaneous Price Ratio?
Define “Impermanent Loss” in Terms of the Price Movement and the Pool’s Ratio Change