Is it possible to issue more tokens than 50 million on this contract? I already several times encountered when they say one quantity, and when sales start, it is no longer produced by quantity but by kilograms. as an example
https://etherdelta.com/#EDOGE-ETHWell, the contract itself is coded to not issue more than 50 millions tokens. I post here some part of the code:
uint256 public totalSupply = 50000000e8;
uint256 private totalReserved = (totalSupply.div(100)).mul(15);
uint256 private totalBounties = (totalSupply.div(100)).mul(5);
uint256 public totalDistributed = totalReserved.add(totalBounties);
uint256 public totalRemaining = totalSupply.sub(totalDistributed);
This is the part where the variables are declared, totalSupply = 50000000e8 which is 50 millions. Then the 15% reserved plus 5% for bounties is assigned to the contract creator address.
function distr(address _to, uint256 _amount) canDistr private returns (bool) {
totalDistributed = totalDistributed.add(_amount);
totalRemaining = totalRemaining.sub(_amount);
balances[_to] = balances[_to].add(_amount);
Distr(_to, _amount);
Transfer(address(0), _to, _amount);
return true;
if (totalDistributed >= totalSupply) {
distributionFinished = true;
}
}
This is the distribution function that is called in every other function in the contract. As you can see every time the function is called it will add the distributed amount to the totalDistributed; it will also check if the totalDistributed is more or equal to the totalSupply, and if this is true will close the distribution: distributionFinished = true;
require(value <= totalRemaining);
In every function there is this code, which says "it is required that the value to give is less or equal to the totalRemaining
modifier canDistr() {
require(!distributionFinished);
_;
}
Finally this is the modifier of every function; it will check if the distribution is already declared as finished. If so, the function will not run.
In the code there is no function to declare the distribution opened again.
This is a quick summary of the code, you can have a look to the full code here:
https://etherscan.io/address/0x5fa1ea99eb3acc1f9e84cf28fde6431b8fdc9dc0#code