πŸ”„Swap

Swap: a token exchange page that supports traders to exchange tokens.

The DDDX Protocol is a new protocol-2-protocol AMM(decentralized exchange) designed for exchanging uncorrelated or tightly correlated assets on the BNB Chain.

Uncorrelated Assets exchange

Mechanism refer to Uniswap, or read this What Is an Automated Market Maker (AMM)?

Correlated Assets(Stable token exchange)

Here we introduce a new curve: X3βˆ—Y+Y3βˆ—X=KX^3*Y +Y^3*X = K, which allows efficient stable swaps。

Quoting:

y = (sqrt((27 a^3 bx^2 + 27 ab^3 x^2)^2 + 108 x^12) + 27 a^3 bx^2 + 27 ab^3 x^2) ^(1/3)/(3 2^(1/3) x) - (2^(1/3) x^3)/(sqrt((27 a^3 bx^2 + 27 ab^3 x^ 2)^2 + 108 x^12) + 27 a^3 bx^2 + 27 ab^3 x^2)^(1/3)

Find more on our Github.

Fee

0.01% fee for the correlated assets and 0.25% for the uncorrelated assets

Last updated