2 votes
Accepted

what is the unit in ICO?

So the math is as follows, 1 coin = 1 * 10**3 = 1000 So 1 coin for 1 wei = 1000 coins for 1 wei since the coin is of 3 decimals. Hope this answers your question
user avatar
2 votes

Can you reserve your token name and symbol before releasing to mainnet?

It is not possible, there isn't a centralized registry for token names or symbols.
user avatar
  • 29.1k
1 vote
Accepted

ERC20Token - crowdsale, not enough tokens for transfer issue

The problem is in transfer() function as you suggested. In particular, when you deploy SAMTokenSale and is calling tokenContract.transfer(address(this), tokensForSale); it'll call the transfer() ...
user avatar
  • 1,443
1 vote

Persistent out of gas error with truffle latest on receive (Fallback) function

I have seen that receive function has a fix low gas quantity to spent and the solution was on turning mere receive function into an external payable one...
user avatar
  • 13
1 vote
Accepted

error: type address payable is not implicitly convertible to expected type contract "IERC20""

You have this error because you are trying to assign a payable address to a IERC20 parameter. Such an implicit conversion will not be done by solidity itself, you must do it explicitly. This has ...
user avatar
  • 5,359
1 vote

Invalid implicit conversion from address to address payable requested

In the newer versions of solidity, you have to explicitly mention payable wherever it is expected. Crowdsale(_rate, payable(_wallet), _token)
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible