Add a comment on Detailed ERC20 token #953 (#960)

* add a comment on detailed erc20 token #953
This commit is contained in:
Vittorio Minacori
2018-06-05 03:13:09 +02:00
committed by Matt Condon
parent 9d6ffae8cb
commit 512e8218ca
2 changed files with 10 additions and 1 deletions

View File

@ -25,7 +25,10 @@ contract Crowdsale {
// Address where funds are collected
address public wallet;
// How many token units a buyer gets per wei
// How many token units a buyer gets per wei.
// The rate is the conversion between wei and the smallest and indivisible token unit.
// So, if you are using a rate of 1 with a DetailedERC20 token with 3 decimals called TOK
// 1 wei will give you 1 unit, or 0.001 TOK.
uint256 public rate;
// Amount of wei raised

View File

@ -3,6 +3,12 @@ pragma solidity ^0.4.23;
import "./ERC20.sol";
/**
* @title DetailedERC20 token
* @dev The decimals are only for visualization purposes.
* All the operations are done using the smallest and indivisible token unit,
* just as on Ethereum all the operations are done in wei.
*/
contract DetailedERC20 is ERC20 {
string public name;
string public symbol;