Skip to content

Conversation

orenyodfat
Copy link
Contributor

fix #594

@orenyodfat orenyodfat requested a review from leviadam February 16, 2019 23:38
address(token).safeTransferFrom(msg.sender, address(this), _amount);
// solhint-disable-next-line not-rely-on-time
auctionId = (now - auctionsStartTime) / auctionPeriod;
require(auctionId == _auctionId, "false auction id");
Copy link
Contributor

@dkent600 dkent600 Feb 16, 2019

Choose a reason for hiding this comment

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

More clear revert string would be "auction is not active" ("false" means something not appropriate here)

Copy link
Contributor

@leviadam leviadam left a comment

Choose a reason for hiding this comment

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

Not sure this is necessary. But OK.

@orenyodfat orenyodfat merged commit 73e2d84 into master Feb 17, 2019
@orenyodfat orenyodfat deleted the bidder_get_biddingid branch February 17, 2019 10:20
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.

Should not be able to bid to the wrong auction

3 participants