I am creating new ERC-20 DOTAToken. I want my token to have total supply 800 millions and 18 decimals. Is it correct way to declare it?
contract DOTAToken {
string constant public name = "DOTATOKEN";
string constant public symbol = "DTK";
uint256 constant public decimals = 18;
uint256 constant public totalSupply = 8 * 10 ** (8 + 18);
function DOTAToken () public {
owner = msg.sender;
}
}