Swap

Ticks and Price Ranges

Ticks represent discrete price points within the price range of a liquidity pool. Each tick corresponds to a specific price level where liquidity can be concentrated. This allows liquidity providers (LPs) to allocate their capital more efficiently by choosing price ranges where they believe trading activity will occur.

  • Active Liquidity: In Magma Protocol, LPs can provide liquidity at specific ticks rather than across the entire price range. This concentrated liquidity enables LPs to earn higher fees when trades occur within their chosen price ranges while minimizing impermanent loss.

Price Impact

Price impact refers to the effect that a trade has on the market price of a token due to changes in its supply and demand balance. In Magma Protocol, larger swaps can lead to significant price changes, especially if executed against illiquid pools. When executing a swap, users are presented with an estimate of potential price impact, which helps them gauge how much their trade will affect the market price. This transparency allows users to make informed decisions about their trades and understand potential slippage before confirming a transaction.

Slippage

Slippage occurs when there is a difference between the expected price of a trade and the actual execution price. In Magma Protocol, slippage can happen due to rapid changes in market conditions or insufficient liquidity at the desired price level.

  • Managing Slippage: To mitigate slippage, users can set slippage tolerance levels before executing a swap. This tolerance defines the maximum acceptable difference between the expected price and the executed price. If the market moves beyond this threshold during execution, the transaction will revert, protecting users from unfavorable pricing.

Aggregator

Magma Protocol incorporates an aggregator feature that enhances trading efficiency by sourcing liquidity from multiple DEXes. This functionality allows users to access better pricing and reduced slippage by routing trades through various platforms. You can choose your exchange route at your will.

Last updated