---
title: "Igor Yalovoy (@ylv) | Hashnode"
description: "Igor Yalovoy (@ylv) writes on Hashnode. Read their latest articles and follow their work."
url: "https://hashnode.com/@ylv"
---

@ylv

# Igor Yalovoy

@ylv · Joined April 2018

## Comments

[if ((stage == CrowdsaleStage.PreICO) && (token.totalSupply() + tokensThatWillBeMintedAfterPurchase > totalTokensForSaleDuringPreICO)) { msg.sender.transfer(msg.value); // Refund them EthRefunded("PreICO Limit Hit"); return; } It is better to user revert here?](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9/comment/5b63332bc4c0397e69370681)

Comment · Article · Aug 2, 2018 · [The 2018 guide to writing (and testing) real world crowdsale contracts](https://hashnode.com/posts/the-2018-guide-to-writing-and-testing-real-world-crowdsale-contracts/5a67bb65357c012503a334c9)

[ERC20 explicitly says: Note Transfers of 0 values MUST be treated as normal transfers and fire the Transfer event. Yet, your code return false on 0 and do not call Transfer event. if (balances\[\_from\] >= \_value && allowed\[\_from\]\[msg.sender\] >= \_value && \_value > 0) { I guess, it is not fully ERC20 compatible then.](https://hashnode.com/posts/how-to-build-your-own-ethereum-based-erc20-token-and-launch-an-ico-in-next-20-minutes/5a38344e912627e67468a2c4/comment/5b06a7bac858ca69643a87c7)

Comment · Article · May 24, 2018 · [How to build your own Ethereum based ERC20 Token and launch an ICO in next 20 minutes](https://hashnode.com/posts/how-to-build-your-own-ethereum-based-erc20-token-and-launch-an-ico-in-next-20-minutes/5a38344e912627e67468a2c4)

[Amazing article. It might be a good idea to specify visibility modifier for functions explicitly.](https://hashnode.com/posts/how-to-build-your-own-ethereum-based-erc20-token-and-launch-an-ico-in-next-20-minutes/5a38344e912627e67468a2c4/comment/5b069c5ccc0e942457c58b09)

Comment · Article · May 24, 2018 · [How to build your own Ethereum based ERC20 Token and launch an ICO in next 20 minutes](https://hashnode.com/posts/how-to-build-your-own-ethereum-based-erc20-token-and-launch-an-ico-in-next-20-minutes/5a38344e912627e67468a2c4)
