Skip to content
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

Competition : Add Redemption period #770

Merged
merged 5 commits into from
Jul 16, 2020
Merged

Competition : Add Redemption period #770

merged 5 commits into from
Jul 16, 2020

Conversation

orenyodfat
Copy link
Contributor

@orenyodfat orenyodfat commented Jul 15, 2020

  • this is to avoid the dao depend on all suggester to redeem their rewards to get back the leftover using sendLeftOverFunds

@orenyodfat orenyodfat requested a review from ben-kaufman July 15, 2020 17:31
@orenyodfat orenyodfat requested a review from leviadam as a code owner July 15, 2020 17:31
Oren Sokolowsky added 2 commits July 15, 2020 20:35
@orenyodfat orenyodfat changed the title Redemption period Competition : Add Redemption period Jul 15, 2020
@@ -274,13 +274,9 @@ contract Competition {
*/
function sendLeftOverFunds(bytes32 _proposalId) public {
// solhint-disable-next-line not-rely-on-time
require(proposals[_proposalId].endTime < now, "competition is still on");
require(proposals[_proposalId].endTime.add(REDEMPTION_PERIOD) < now, "redemption period is till on");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: till -> still

Copy link
Contributor

@ben-kaufman ben-kaufman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@orenyodfat orenyodfat merged commit 9feb70d into master Jul 16, 2020
@ben-kaufman ben-kaufman deleted the redemption_period branch July 16, 2020 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants