Let's take two addresses:
The first one is a liquidity pool that implements IPancakePair
interface and the second one is a IERC20
token.
Short of inspecting the name, how can I differentiate the two programmatically?
I have abi for IPancakePair
and IERC20
.