> For the complete documentation index, see [llms.txt](https://onchaintrade.gitbook.io/ot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://onchaintrade.gitbook.io/ot/spot-and-borrow/swap/stable-swap.md).

# Stable Swap

Algorithm for stable asset swap is similar to [Curve.finance](https://onchaintrade.gitbook.io/ot/spot-and-borrow/swap/www.curve.fi) with low slippage and low [fee rate](/ot/fee-policy.md)

x + y = k when the stable coin de-peg percentage is smaller than 5%

When a stable coin de-peg equal or more than 5%, swap applies x \* y = k algorithm.
