Price Impact
This page is meant to encompass the spot price and effective price calculations discussed prior. The end goal being to understand how price impact affects a liquidity pool and traders.
Last updated
This page is meant to encompass the spot price and effective price calculations discussed prior. The end goal being to understand how price impact affects a liquidity pool and traders.
Last updated
Using our previous example from Arbitrum we can calculate the spot price using the equation from example 1 and from there determine the price impact using the following equation.
Spot price:
Finally we can calculate price impact for both instances of 10 WETH or 100 WETH trades. (Spot price is technically constant as long as the pool remains in its observed state.) Based on calculations
This example was tested on the actual site in order to confirm this. However depending on the trade you may interact with different pools to receive the best price. Please note this value will always act against the trader, regardless of being presented as a positive or negative value.