Skip to content

No purchase after early genesis#11

Merged
Joeysantoro merged 1 commit intoPOZ-Combinedfrom
CS-No-Purchase-After-Early-Genesis
Jan 28, 2021
Merged

No purchase after early genesis#11
Joeysantoro merged 1 commit intoPOZ-Combinedfrom
CS-No-Purchase-After-Early-Genesis

Conversation

@Joeysantoro
Copy link
Contributor

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


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
@xklob xklob 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.

2 participants

Comments