I would like my token to have the maximum possible amount of tokens issued as a novelty. I would like to use 18 decimals standard ERC20 token, what value can I put in to get the maximum amount of tokens possible?
The maximum number of tokens, compatible with ERC20, is the maximum amount a
uint256 variable can store:
(2**256) - 1 with
0 decimals. If you use
18 decimals, the maximum amount of tokens is
(2^256-1)/10^18 = 115,792,089,237,316,195,423,570,985,008,687,907,853,269,984,665,640,564,039,457