Agoric Components Library
  • Welcome!
    • 🐇Getting Started
  • Smart Contracts
    • DeFi
      • 🤝Lending Protocol
      • 🤖Arbitrage Bot
      • 💧LP Stop Loss
      • 📈Like-peg Swap AMM
    • NFTs
      • 🎴NFT Marketplace
      • đŸ•šī¸NFT Character Builder
      • đŸ–ŧī¸NFT Drop
      • âš–ī¸Auction Mechanism
    • Governance
      • đŸ—ŗī¸Vote Counter
      • đŸ‘ĢGovernance Committee
    • Cross-chain
      • 💲Price Feed Oracle
      • 📃Akash Lease Management
      • 🌉Axelar Transfer
      • âš›ī¸Cosmos Hub ICA
      • ⏊IST & PSM Forwarder
  • Bounties
    • Open Bounties(none at this time)
    • Assigned Bounties
    • 🔎Agoric Swingset Contract Explorer
    • 🤖Inter Protocol Liquidation Bidding Bot
    • đŸ’ģContract Manages Akash-hosted Front End
  • 📜LEGAL
    • Disclaimer
Powered by GitBook
On this page
  • Summary
  • Details
  • Explore on GitHub
  1. Smart Contracts
  2. DeFi

Like-peg Swap AMM

Minimize slippage for like-asset pairs on Agoric AMM

PreviousLP Stop LossNextNFTs

Last updated 1 year ago

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:

  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

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. '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

Built by

Curve.Fi
https://github.com/robor-systems/agoric-amm-curve/
Robor Systems
📈
Page cover image