I'm playing around with Solidity and now I'm coding my own "ICO". Followed this tutorial:

How to build your own Ethereum based ERC20 Token and launch an ICO
in next 20 minutes

and things worked fine. But I've seen a lot of articles online how a smart contract is drained from a hacker or how funds are forever locked.

How to make sure only you can access the funds from your ICO?

1 Answer 1


That is an outdated smart contract code without prevention of overflow. The PoWHCoin was exploited because of an overflow bug. To prevent such from happening, you'll have to implement the Safemath library. I'll advise you to make use of the latest Open Zeppelin source code on github.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.