-
Notifications
You must be signed in to change notification settings - Fork 21
return reputation rewarded from Redeem function #566
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
orenyodfat
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.
Please add tests.
Let’s keep the version bump to another pr .
| * @return uint reputation rewarded | ||
| */ | ||
| function redeem(address _beneficiary, uint _auctionId) public returns(bool) { | ||
| function redeem(address _beneficiary, uint _auctionId) public returns(uint) { |
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.
function redeem(address _beneficiary, uint _auctionId) public returns(uint reputation)
remove reputation declaration inside function
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.
done: 2418b42
| * @return uint reputation rewarded | ||
| */ | ||
| function redeem(address _beneficiary) public returns(bool) { | ||
| function redeem(address _beneficiary) public returns(uint) { |
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.
function redeem(address _beneficiary) public returns(uint reputation)
and remove reputation declaration inside the function.
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.
done: 2418b42
The dutchx app wants to display to the user how much reputation the user will be rewarded. This PR change greatly facilitates obtaining this value after the locking period has ended and before the rep has been redeemed, and it keeps within the contract the logic for computing reputation.
(The amount of reputation rewarded after redeeming will have to come from the Redeem events.)