-
Notifications
You must be signed in to change notification settings - Fork 21
Added AuthorizedMintRep scheme #704
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
Conversation
/** | ||
* @dev Throws if called by an unauthorized account. | ||
*/ | ||
modifier onlyAuthorized() { |
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.
how about use ownable ?
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.
and onlyOwner
activationEndTime = _activationEndTime; | ||
repRewardLeft = _maxRepReward; | ||
authorizedAddress = _authorizedAddress; | ||
limitRepReward = _maxRepReward != 0; |
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.
what does it means != 0 ?
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.
If it is not 0 I want to skip the check of the limit of reputation
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.
this is strange syntax .
do we have a test which cover this case ?
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.
Yes, what's weird about this syntax?
|
||
/** | ||
* @dev reputationMint function | ||
* @param _beneficiary the beneficiary address to redeem for |
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.
redeem ?
/** | ||
* @dev reputationMint function | ||
* @param _beneficiary the beneficiary address to redeem for | ||
* @param _amount the agreementHash hash |
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.
_agreementHash ?
* @param _beneficiary the beneficiary address to redeem for | ||
* @param _amount the agreementHash hash | ||
*/ | ||
function reputationMint(address _beneficiary, uint256 _amount) external onlyAuthorized { |
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.
does this function should return bool same as the reputation mint ?
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.
No, but it can if we want it to.
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.
Why package-lock changed ?
Fix #703