* add a comment on detailed erc20 token #953
This commit is contained in:
committed by
Matt Condon
parent
9d6ffae8cb
commit
512e8218ca
@ -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;
|
|||||||
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;
|
||||||
|
|||||||
Reference in New Issue
Block a user