title: Understand price impact and liquidity in uniswap
body: <p>I am trying to understand how the price impact and liquidity was calculated in uniswap through the router contract?</p>
  <p>Router Contract: <a href="https://etherscan.io/address/0x7a250d5630b4cf539739df2c5dacb4c659f2488d" rel="nofollow noreferrer">https://etherscan.io/address/0x7a250d5630b4cf539739df2c5dacb4c659f2488d</a></p>
  <p>Is there is any direct method or what calculations need to do in my code? Pl. Guide me.
  Thanks in Advance</p>