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

No purchase after early genesis #11

Merged
merged 1 commit into from Jan 28, 2021

Conversation

Joeysantoro
Copy link
Contributor

Fix the issue where an early genesis period end still allows users to purchase and commit.

@@ -71,7 +71,7 @@ contract GenesisGroup is IGenesisGroup, CoreRef, ERC20, ERC20Burnable, Timed {
}

modifier onlyGenesisPeriod() {
require(!isTimeEnded(), "GenesisGroup: Not in Genesis Period");
require(!isTimeEnded() && !core().hasGenesisGroupCompleted(), "GenesisGroup: Not in Genesis Period");

Choose a reason for hiding this comment

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

Do you still need !isTimeEnded()? This would prevent purchases after the time has ended even if the launch hasn't happend yet. Is that the intention?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes this is intended!

@Joeysantoro Joeysantoro merged commit 2ab1d81 into POZ-Combined Jan 28, 2021
@Joeysantoro Joeysantoro added the OZ/CS Fix Combo A PR which addresses an issue from both OpenZeppelin and ConsenSys label Feb 6, 2021
Joeysantoro added a commit that referenced this pull request May 13, 2021
@kryptoklob kryptoklob deleted the CS-No-Purchase-After-Early-Genesis branch September 19, 2021 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OZ/CS Fix Combo A PR which addresses an issue from both OpenZeppelin and ConsenSys
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants