These are chat archives for ethereum/tutorials
Hi! I am new to crypto-world and I have some questions. Idk is it a right room to ask. The question is about ICO. I have read a couple of articles to build a model in my head of how it works. So, if i understood correctly, I need 2 contracts for the ICO:
1) My new coin contract (with transfer method).
2) Crowdsale contract which accepts ETH and give users my tokens in reward.
I can not understand few things:
1) What would prevent users from starting exchanging my coins just after they get it? They have access to transfer method. They say "exchanging coins is allowed after ICO is ended" in articles, but i can't find any code in examples that disallows it.
2) Is there a connection between my coin contract and user's wallet? Can user see that he has some number of MyCoin on his wallet balance? Or the only place where his balance is stored is storage of my contract?