YEARN
v2
v2
  • Introduction to Yearn
  • FAQ
  • DeFi Glossary
  • How-To Guides
    • How to Add a Custom Token to MetaMask
    • How To Make a YIP
    • How to Mint yUSD
    • How To Participate in a yVault
    • How to Understand CRV Vote Locking
    • How To Understand yVault ROI
    • How To Withdraw from yEarn and yVaults
  • YFI and yTokens
  • yUSD
  • Products
    • yVaults
      • V2 yVaults
        • Strategies and yVaults available
      • V1 yVaults
    • Earn
    • Zap
    • yInsure
    • yGift
  • R&D
    • yBorrow
    • yLiquidate
    • ySwap
    • yTrade
    • Delegated Funding DAO Vaults
    • StableCredit
  • Developers
    • Naming Conventions
    • Deployed Contracts Registry
    • Code Repositories
    • Integration Guide
    • yVaults Documentation
      • Vaults Overview
      • Vault Interfaces
    • Misc Resources
      • YIP Boilerplate
      • Admin Access Policy
      • Smart Contract API
        • APR
        • iToken
        • Zap
      • Smart Contract Integration
        • 1split
        • aave
        • apr
        • aprmap
        • aprmapwithpool
        • aprwithpool
        • compound
        • curvefi
        • dydx
        • fulcrum
        • imanage
        • interface
        • itoken
        • uniswap
        • uniswapapr
        • uniswaproi
        • ybtc
        • ybusd
        • ycrv
        • ydai
        • ysusd
        • ytusd
        • yusdc
        • yusdt
        • zap
  • Additional Resources
    • Team
    • Github
    • Medium
    • Gov Forum
    • Discord
    • Telegram
    • Reddit
  • Contributors
    • Contribute
    • Contributor Tools
    • Writing Style Guide
Powered by GitBook
On this page
  • Overview
  • Mechanics

Was this helpful?

  1. R&D

ySwap

Not recommended for retail use

PreviousyLiquidateNextyTrade

Last updated 4 years ago

Was this helpful?

Overview

is currently in the testing phase and not available for general use. It's an automated market maker (AMM) enabling single-sided liquidity and impermanent loss (IL) mitigation. ySwap creates decentralized trading pools (similar to Uniswap), which traders can buy or sell from. Additionally, users can provide liquidity using only one token, whereas on Uniswap they would need both tokens in the pool at a 50/50 ratio. This removes barriers of entry for potential liquidity providers who may not have both tokens in a pool. The following tokens are available to be traded:

  • wrapped BTC: renBTC, wBTC, sBTC

  • AAVE tokens: aBTC, aLEND, aMKR, aMANA, aKNC, aLINK, aUSDC, aREP, aZRX, aBAT, aDAI, aTUSD, aUSDT, aBUSD, aSUSD, aSNX

  • Standard ERC-20s: LEND, MKR, MANA, KNC, LINK, USDC, REP, ZRX, BAT, DAI, TUSD, USDT, BUSD, SUSD, SNX,

  • Synthetix tokens: sAUD, sEUR, sCHF, sGBP, sJPY, sXAG, sXAU

Mechanics

aUSD is immediately minted when a user deposits into one of the ySwap AMM pools. aUSD is a synthetic stablecoin that is pegged to the price of $1. The amount of aUSD minted depends on the market value of the asset deposited. Market prices are provided by 's decentralized oracles, therefore only coins with are eligible to be traded. A list of the current price feeds supported by Chainlink oracles can be found .

Immediately after deposit, the deposited token and aUSD are added to the ySwap pool, and the depositor receives a LP token in return, representing his or her share of the pool. Traders make trades using the .

If a trader desires to sell aLINK for aLEND the following steps will occur:

  • The interface will deposit the trader's aLINK into the ySwap LINK pool;

  • The dollar amount of the aLINK, at the time of trade, is made using the aUSD to the aLEND pool;

  • ySwap sends the amount of aLEND purchased to the trader.

The AMM is a constant product market maker (CPMM) and uses a bonding curve, similar in design to Uniswap. If the dollar value of the asset increases, depositors will receive the full amount of the deposit back. If the dollar value of the asset decreases, depositors will receive the full amount of the deposit back plus an additional amount in aUSD. This additional aUSD amount is meant to compensate liquidity providers for exposure to impermanent loss, which occurs during volatile price changes of assets.

ySwap
Chainlink
Chainlink price feeds
here
ySwap interface