Explain the Difference between a Constant Product and a Stable-Swap AMM.
A constant product AMM (x y=k) is designed for volatile asset pairs (e.g. ETH/USDC), resulting in high slippage for large trades.
A stable-swap AMM (e.g. Curve) uses a hybrid function that is nearly flat around the peg, designed for low-volatility, pegged assets (e.g. stablecoins).
This design allows for much larger trades with minimal slippage.