xSigma Guides
  • Welcome to xSigma
  • Quickstart Guides
    • What is xSigma?
    • How to use xSigma
    • How to become an LP to earn rewards
    • SIG Token & DAO
    • What does LP mean?
    • Rewards for Early LPs
    • Stablecoin exchange
  • FAQs
    • General FAQ
    • Website FAQ
    • Deposit FAQ
    • Wallets FAQ
  • SIG Token
    • Disclaimer
    • DAO
    • SIG Total Supply & Distribution
    • Earning SIG
    • Buying SIG
    • Burning SIG
  • SIG LP Token
    • 〽️ Fee Payout for LPs
  • Glossary
  • Whitepaper
  • xSigma Lab
  • 🎁xSigma v2
    • Updates for Version 2 Launch
    • Why You Should be an LP In xSigma V2
  • 🖐️BSC
    • xSigma BSC Overview
    • Migration Guide
      • Why migrate?
      • How to migrate?
      • Step-by-step guide
    • Basics
      • Connect your wallet
      • Transfering your assets
  • 🚊ETH v2
    • xSigma ETH v2 Overview
Powered by GitBook
On this page

Was this helpful?

  1. Quickstart Guides

Stablecoin exchange

PreviousRewards for Early LPsNextFAQs

Last updated 4 years ago

Was this helpful?

xSigma at its core is a stablecoin exchange.

How it works is that there is a special smart contract that holds a pool of three stablecoins: DAI, USDC, USDT. You may find this contract at this address:.

When someone uses xSigma to exchange stablecoins, they send a certain amount TO an xSigma smart contract, which calculates the current exchange rate, and the person receives the corresponding amount in the output currency FROM the smart contract, minus a small fee.

This way, under normal operation, stablecoins never leave the pool, ensuring the safey of LPs' assets. The proportions of the stablecoins may change, but the total amount always stays the same or grows slightly in line with the fee amount.

The pricing algorithm that calculates the exchange rate ensures that the stablecoins are balanced. When there's a shortage of a coin, its price becomes higher, providing an arbitrage opportunity for anyone to re-balance the pool. This is an example of a StableSwap algorithm presented in the following paper: .

Simply put, the stablecoins of LPs are used as liquidity for trades on the exchange. If someone wants to exchange $1000 worth of USDT to USDC, we'd need to have ~$1000 worth of USDC accordingly, so we need enough reserves to execute the exchange, which is where LPs with their stablecoins come in.

0x3333333ACdEdBbC9Ad7bda0876e60714195681c5
https://www.curve.fi/stableswap-paper.pdf