Would it theoretically be the Javascript Max Safe Integer?
Tokens on the Ethereum blockchain are normally stored inside an ERC20 compliant smart contract. Inside this contract the balance of each account is held inside a mapping from addresses to balances, as is explained quite well in this article. The total supply (as shown here) is stored in a state variable:
uint256 public totalSupply;
The theoretically largest value that can be stored in this variable is 2**256 - 1
.
uint256
, the max integer value is2 ^ 256 - 1
. – goodvibration Jan 12 '18 at 21:24uint256 supply = ~0
). – goodvibration Jan 12 '18 at 21:48