Commit 512e8218 by Vittorio Minacori Committed by Matt Condon

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

* add a comment on detailed erc20 token #953
parent 9d6ffae8
...@@ -25,7 +25,10 @@ contract Crowdsale { ...@@ -25,7 +25,10 @@ contract Crowdsale {
// Address where funds are collected // Address where funds are collected
address public wallet; 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; uint256 public rate;
// Amount of wei raised // Amount of wei raised
......
...@@ -3,6 +3,12 @@ pragma solidity ^0.4.23; ...@@ -3,6 +3,12 @@ pragma solidity ^0.4.23;
import "./ERC20.sol"; 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 { contract DetailedERC20 is ERC20 {
string public name; string public name;
string public symbol; string public symbol;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment