๐Ÿ”Dual AMM

Dual AMM

JalaSwap's Dual AMM is based on UniV2 constant formula, with a custom implementation of a Curve-esque logic for stables.The JalaSwap 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 On Path Independence, 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 StableSwap - efficient mechanism for Stablecoin liquidity 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 JalaSwap 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=kx^3y + xy^3 = k

Referral

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

Last updated