đ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.
Summary
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.
It includes:
A new version of bondingCurves.js using a new curve structure
An update to Agoric's MultiPool Autoswap contract to include a term that chooses which bonding curve to use
Details
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.
Explore on GitHub
https://github.com/robor-systems/agoric-amm-curve/
Built by Robor Systems
Last updated