FanX
  • ๐Ÿ“Overview
  • CHILIZ GUIDE
    • ๐Ÿ†•Wallet Creation
    • ๐Ÿ“Wallet Setup for Chiliz
    • ๐ŸŒ‘Adding Tokens to Wallet
  • FANX USER GUIDE
    • ๐Ÿ”ŒAdding Chiliz Chain
    • ๐Ÿ†•New Pool Creation
    • โž•Add liquidity
    • โž–Remove Liquidity
    • ๐Ÿ’ฑSwap
    • European Competition
  • PROTOCOL MECHANICS
    • ๐ŸฐProtocol Earnings
    • ๐ŸŒฏWrapped Fan Token
    • ๐Ÿ”FanXSwap V2
      • Liquidity and Yield Farming
      • Impermanent Loss
      • Wrapped Tokens
      • Master Router
  • CONTRACT
    • ๐Ÿ’ผContracts
    • ๐ŸŒช๏ธTokens in FanX
  • REFERENCES
    • ๐Ÿ“„Terms of Use
Powered by GitBook
On this page
  1. PROTOCOL MECHANICS

FanXSwap V2

PreviousWrapped Fan TokenNextLiquidity and Yield Farming

Last updated 25 days ago

Dual AMM

FanXSwap's Dual AMM is based on UniV2 constant formula, with a custom implementation of a Curve-esque logic for stables. The FanXSwap AMM is the core of our ecosystem-oriented approach, designed with the following principles in mind:

  1. A high degree of fluidity to tailor each protocol / market participant's needs

  2. Capital efficiency with highly effective trading efficiency.

  3. De-risking Chiliz native protocols from mercenary liquidity and adapting to their needs

Dual AMM is a dual-liquidity model for both volatile and stable assets with Swap Referral for partnering protocols

  1. Constant Product

First introduced by Vitalikโ€™s , Automated Market Makers (AMM) became the steering pillars for DeFi. Uniswap utilizes the constant product formula (CPAMM), x * y = k, where x is the quantity of token X, y is the quantity of token Y and k is a constant. Each token pool is only comprised of two assets X and Y and this formula ensures the ratio of both are equal.

The graphical representation of the CPAMM

xโˆ—y=kxโˆ—y=k

  1. Constant Sum

CPAMM has been time-tested with exchanging long tail assets, but has been inefficient for stablecoins due to high price impact. Michael Egorovโ€™s dawns the constant sum formula (CSAMM), x + y = k. The underlying invariant that empowers Curve with a minimal price slippage.

The graphical representation of the CSAMM

Embodying both CPAMM and CSAMM, each FanXSwap can configure its own type, depending on the expected price correlation level between the two tokens of the pair. For volatile pairs, composed of uncorrelated assets, based on the UniV2 model (CPAMM), the pool uses the standard constant product formula. For stable pairs of correlated assets, designed to maintain a 1:1 transfer ratio, the pool uses BasePool model (CSAMM).

Stable pairs are used for correlated assets, and will try to maintain a 1:1 transfer ratio as much as possible. The formula is based on the well-known Solidly curve:

x3y+xy3=kx3y+xy3=k

Referral

The swap referral in design will be available for everyone. Every FanXSwap referral partner can add its referral address to each transaction made on FanXSwap through its dApp, and subsequently receives a part of their users' generated swap fees. We envision a Win/Win scenario in which all FanXSwap actors are adequately rewarded, thereby fostering a fair and sustainable ecosystem.

๐Ÿ”
On Path Independence
StableSwap - efficient mechanism for Stablecoin liquidity