Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
512e8218
Commit
512e8218
authored
Jun 05, 2018
by
Vittorio Minacori
Committed by
Matt Condon
Jun 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a comment on Detailed ERC20 token #953 (#960)
* add a comment on detailed erc20 token #953
parent
9d6ffae8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
Crowdsale.sol
contracts/crowdsale/Crowdsale.sol
+4
-1
DetailedERC20.sol
contracts/token/ERC20/DetailedERC20.sol
+6
-0
No files found.
contracts/crowdsale/Crowdsale.sol
View file @
512e8218
...
@@ -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
...
...
contracts/token/ERC20/DetailedERC20.sol
View file @
512e8218
...
@@ -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;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment