I am writing ERC20 based smart contract using solidity. I want to specify the amount on which user can actually buy my coin. I had tested my smart contract on
ropsten test network and it shows 0.00$ as my coin price.
My questions are:
Is it possible to set the initial coin price while deploying smart contract? If yes, code snippet or some url are welcomed. If no, Please explain how to set coin price?
Is there any way to increase the coin price such that if my 25% coins are sold the price will be set to (2 x current price).
I am a newbie to ERC20 and solidity. Any help/comment would be appreciated.