I'm interested in comparing how liquid DEX pools are, for example in order to find the pool that would have the least price impact when swapping from ETH to stablecoins.
Looking at the token balances in the pools, the DAI/WETH 0.05% pool on mainnet has $9 million total liquidity, and the USDC/WETH 0.05% pool has $154 million. Yet when querying the liquidity
value from the smart contract, the DAI/WETH pool outputs a much larger value than the USDC/WETH pool. How to interpret the values?
dai_pool = web3.eth.contract(address="0x60594a405d53811d3BC4766596EFD80fd545A270", abi=v3_pool_abi)
usdc_pool = web3.eth.contract(address="0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640", abi=v3_pool_abi)
print(" DAI/WETH:", dai_pool.functions.liquidity().call())
print("USDC/WETH:", usdc_pool.functions.liquidity().call())
Output:
DAI/WETH: 942400076766135530607937
USDC/WETH: 8454845200353069444