I'd like to be able to check if an arbitrary address is a Uniswap liquidity pool pair address. I know I can compute the LP with CREATE2 but what if I don't know the tokens, I just have an address and want to know if it's a Uniswap LP. Will something like this work:
IUniswapV2Pair pair = IUniswapV2Pair(0x000...some address....0000);
uint256 price=pair.price0CumulativeLast();
if (price>0) { this is a real LP... }
Or is there a Uniswap function specifically for this purpose?