So I have a contract address of an ERC20 token and I have direct access to a full node. I want to determine the price of that token in ETH without making any external API calls and just by using my own full node.
How do I go about doing that?
Can I just divide the amount of ETH owned by the contract to the amount of tokens minted?