I would like to know how can I get the token liquidity and token price using web3/nodejs?
I am trying the following but I am not sure how can I calculate properly the liquidity.
'function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast)',
Which is returning reserves0 and reserves1. upon that how can I calculat the liquidity?