Check how a DEX swap quote changes with your order size, read reserves in a V2 pool, and tell price impact apart from slippage and fees.
Start with a swap quote for the exact amount and direction you want to check. In the quote details, look for Price impact. Then compare it with the quote for a smaller amount. Price impact measures how your order size moves the execution price relative to the pool’s starting price. You can inspect the quote without submitting a transaction. Uniswap’s swap screen guide
A liquidity lock can restrict withdrawal of a share of a specific pool until a stated time. Its protection depends on the share locked, which pool the position belongs to, when the lock expires, and who can withdraw or migrate liquidity. It takes a separate check to see whether the liquidity available at the current price can absorb your order size. How to check a liquidity lock
In a constant-product pool like Uniswap V2, the reserve balances follow x × y = k in the simplified case with no fees. For an exact-input swap in that model, divide reserveOut × amountIn by reserveIn + amountIn to estimate how many tokens the pool returns. Compare that output with what the same input would get at the starting reserve ratio. Uniswap V2 pricing documentation
Hypothetical example. A V2 pool holds 10,000 units of a dollar stablecoin and 10,000 units of Token X. The starting pool price is one stablecoin per Token X. Swapping 3,000 stablecoins uses 30% of the input reserve. With fees omitted, the formula gives 10,000 × 3,000 / 13,000 ≈ 2,307.69 Token X, compared with 3,000 Token X at the starting price. The difference is 692.31 Token X, or 23.08% price impact. This example uses invented reserves and a single pool. A live quote can use a different route and include fees.
token0(), token1(), and getReserves(). Match each reserve to its token. Divide the raw amount by 10decimals using that token’s own decimals. Actual Uniswap V2 quotes account for a swap fee. Uniswap V2 pair contract · Uniswap V2 quote calculationDepth is one part of due diligence. A quote describes current conditions. Verify whether the token can be sold, whether transfers are taxed, and who can change the token’s rules separately. Run a free contract check on ChainSift for supported tokens, then use the swap quote to assess depth for your order.