πKAYENSWAP V2
Last updated
Last updated
KayenSwap's Dual AMM is based on UniV2 constant formula, with a custom implementation of a Curve-esque logic for stables. The KayenSwap AMM is the core of our ecosystem-oriented approach, designed with the following principles in mind:
A high degree of fluidity to tailor each protocol / market participant's needs
Capital efficiency with highly effective trading efficiency.
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
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.
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.
Embodying both CPAMM and CSAMM, each KayenSwap 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:
The swap referral in design will be available for everyone. Every KayenSwap referral partner can add its referral address to each transaction made on KayenSwap through its dApp, and subsequently receives a part of their users' generated swap fees. We envision a Win/Win scenario in which all KayenSwap actors are adequately rewarded, thereby fostering a fair and sustainable ecosystem.