Trade

Grabity AMM

Trading is the core feature of Grabity that enables decentralized, non-custodial trades of BEP-20 tokens for everyone. As an automated market maker (AMM), Grabity DEX provides a seamless trading experience based on the constant exchange function:

For each liquidity pool containing tokenA and tokenB,

x * y = k

where,

x = tokenA balance

y = tokenB balance

k = constant

Based on the formula above, whenever tokenA is purchased, the price of tokenA increases as the balance of tokenA within the liquidity pool decreases. Conversely, when tokenA is sold, the price of tokenA decreases as the balance of tokenA within the liquidity pool increases. Based on this mechanism, the total value of each token within a pool remains the same. We recommend this article by Gemini for an in-depth analysis of AMMs.

Liquidity Pools

Trading is only available for token pairs with sufficient liquidity in liquidity pools. Naturally, minimizing slippage for traders relies heavily on maintaining deep liquidity in liquidity pools. To incentivize liquidity providers, a portion of trading fees on Grabity DEX will be directly rewarded to liquidity providers who receive Liquidity Provider (LP) tokens by supplying BEP-20 to liquidity pools. The amount of LP tokens minted to the liquidity provider is proportional to the provider's share of the pool. Out of a trading fee of 0.3% charged to all trades executed on Grabity DEX (excluding the network fee charged by BSC), 0.18% will be rewarded to liquidity providers upon burning their LP tokens to remove their tokens from liquidity pools, and the remaining 0.12% will be sent to the GBT Buy-back Fund. The trading fee and its distribution can be changed in the future through governance votes.

Last updated