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

Auction finalization correctness #30

Closed
wants to merge 2 commits into from
Closed

Conversation

matthewlilley
Copy link
Member

No description provided.

@matthewlilley matthewlilley requested review from maxsam4, Clearwood and gasperbr and removed request for maxsam4 October 25, 2021 14:50
return block.timestamp > uint256(marketInfo.endTime) ||
_getTokenAmount(uint256(marketStatus.commitmentsTotal) + 1) >= uint256(marketInfo.totalTokens);
function _auctionEnded() internal view returns (bool) {
return block.timestamp > uint256(marketInfo.endTime);
Copy link
Contributor

@maxsam4 maxsam4 Oct 25, 2021

Choose a reason for hiding this comment

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

This should keep the || uint256(marketStatus.commitmentsTotal) + 1 >= uint256(marketPrice.goal); logic IMO.

@matthewlilley
Copy link
Member Author

Discussion moved to #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