-
Notifications
You must be signed in to change notification settings - Fork 21
Add redeemEnableTime for lock4reputation schemes #557
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
| function redeem(address _beneficiary, uint _auctionId) public returns(bool) { | ||
| // solium-disable-next-line security/no-block-members | ||
| require(now > auctionsEndTime, "check the auctions period pass"); | ||
| require(now > redeemEnableTime, "now > redeemEnableTime"); |
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.
Should be >=
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.
should be >
| function redeem(address _beneficiary) public returns(bool) { | ||
| // solium-disable-next-line security/no-block-members | ||
| require(block.timestamp > lockingEndTime, "check the lock period pass"); | ||
| require(block.timestamp > redeemEnableTime, "now > redeemEnableTime"); |
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.
Should be >=
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.
should be >
| */ | ||
| function transferToWallet() public { | ||
| // solium-disable-next-line security/no-block-members | ||
| require(now > auctionsEndTime, "now > redeemEnableTime"); |
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.
Error message is wrong.
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.
leviadam
left a comment
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.
Approved. I had one small comment.
use infra 09
auction4reputation - add transferToWallet