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
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.
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() ...
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...
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 ...
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)
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
crowdsale × 254solidity × 111
tokens × 80
ico × 67
contract-development × 51
erc-20 × 45
remix × 31
openzeppelin × 27
truffle × 19
contract-deployment × 12
openzeppelin-contracts × 12
contract-design × 11
ether × 11
blockchain × 7
contract-debugging × 6
metamask × 5
ethereum-wallet-dapp × 5
addresses × 5
error × 5
presale × 5
transactions × 4
mist × 4
ropsten × 4
testrpc × 4
truffle-contract × 4