Great job! I have a problem however:
I have set that unitsOneEthCanBuy = 1000;
In MetaMask (Eth net): when I send 1 ETH I got 10.000 of mycoin.. when I send 0.001 ETH I got 0.010 - why is that?
In MyEtherWallet: when I send 0.001 ETH I got 0.1 mycoin...
Why there are differences? Morover, when I deploy the SAME contract in test net, and test it, it works properly... There are no differences in codes, only difference is that one is on real eth net, and the other in test net.
Hi, I am doing some tests and facing problem with total supply and with option to have 100% of coin.
For example I want to create 1.000000 (million) coins and have all of of them. Also decimal places 18. What values I need change in:
balances[msg.sender] = 1000000000000000000000; // Give the creator all initial tokens. This is set to 1000 for example. If you want your initial tokens to be X and your decimal is 5, set this value to X * 100000. (CHANGE THIS)
totalSupply = 1000000000000000000000; // Update total supply (1000 for example) (CHANGE THIS)
Thanks,
STF