Is it possible to get the current price of ETH in USD in a buyTokens
function of a deployed solidity smart contract?
For instance, every time GETH starts up is determines the price of ETH during initialization.
Or, is the real way to do it with pre-calculation on a site using web3 to interact with the smart contract once it determines the USD value?
Thank you in advance!