Skip to main content

What Happens to the Stableswap Invariant If One of the Stablecoins Loses Its Peg Significantly?

If one of the stablecoins loses its peg significantly, the stableswap invariant's behavior shifts away from the constant sum component and closer to the constant product (x y=k) component. This is a deliberate design to prevent the pool from being completely drained of the more valuable, pegged asset.

The curve steepens dramatically, causing high slippage for trades and protecting the remaining liquidity, but also locking in the impermanent loss for LPs.

Explain the Difference between a Constant Product Market Maker and a StableSwap Market Maker
Explain the Difference between a Constant Product and a Constant Sum AMM Curve
What Are the Advantages and Disadvantages of Using a Constant Sum Formula versus a Constant Product Formula in an AMM?
Why Is the Constant Sum Model Susceptible to Being Fully Drained When the Price Peg Fails?