-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pioneer-related features #17
base: master
Are you sure you want to change the base?
Conversation
contract/contracts/Crowdsale.sol
Outdated
uint public totalStages = 10; | ||
|
||
/// @notice After this moment, users are not becoming pioneers anymore. | ||
uint public pioneerTimeEnd; // 2018/9/17 24:00 (UTC+8) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
忘記在 constructor 裡 initialize
contract/contracts/Crowdsale.sol
Outdated
|
||
uint priceInWei; // how many weis for one token |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
為什麼有些是uint有些是uint256? 因為uint=uint256 你這裡應該是想用uint8? range是0-255
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我習慣寫 uint ,飛虎他們有人習慣寫 uint256 所以還沒整合好而已
看要全部改成哪一種
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我偏好explicitly寫成uint256 對別人來說也避免誤會
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
contract/contracts/Crowdsale.sol
Outdated
uint _tokensPurchased = _weiPaid.mul(rate); | ||
|
||
// Check if buying enough tokens | ||
require(_tokensPurchased >= minTokensPurchased, "Purchasing not enough amount of tokens."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
應改成
require(tokensPurchased[msg.sender].add(_tokensPurchased) >= minTokensPurchased, "Purchasing not enough amount of tokens.");
如此可以買 200 token 然後買 1 tokens
…nd related variables.
DO NOT MERGE