What is the best practice for doing this?
In the ERC20 standard having a
public decimals: uint256 is marked as optional.
But obviously you cannot display a token balance in the UI without having the
So how should I handle the case where the decimals field is not there? Should I just assume the contract implements 18 decimals?
What is the standard here? Is it safe to say that 95% of contracts implement the