Comment on page
Like-peg Swap AMM
Minimize slippage for like-asset pairs on Agoric AMM
Limited Developer Support
All assets represented in this library are community built, which means limited support from the Agoric OpCo development team. Please use components, APIs, and front-ends with caution.
This component implements a curve for Agoric's Automated Market Maker (AMM) which minimizes slippage for like-asset pairs, similar to curve.fi's StableSwap in Ethereum.
- 1.A new version of bondingCurves.js using a new curve structure
- 2.An update to Agoric's MultiPool Autoswap contract to include a term that chooses which bonding curve to use
Standard X*Y=K automated market maker (AMM) curves are meant for asset pairs which have relative volatility and require price responses (slippage) based on trades. However, there is a large demand for AMM swaps of like-assets (e.g., USDC-USDT, WBTC-TBTC, ETH-sETH) - particularly stable token pairs - for which the slippage driven by X*Y=K curves is not desirable. Curve.Fi's StableSwap implementation on Ethereum has had great success driving high volume of these trades. Agoric's stable local currency, IST, will need to trade against other stable tokens with minimal slippage. This adjusted curve implementation will allow for that.