-
Notifications
You must be signed in to change notification settings - Fork 21
Auction4reputation #491
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
Auction4reputation #491
Conversation
fa135be
to
ea8d3d6
Compare
require(now >= auctionsStartTime,"bidding is enable only after bidding auctionsStartTime"); | ||
require(token.transferFrom(msg.sender, wallet, _amount),"transferFrom should success"); | ||
// solium-disable-next-line security/no-block-members | ||
auctionId = ((now - auctionsStartTime)/numberOfAuctions); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this calculation is not correct
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 fixed at ed733dc
// solium-disable-next-line security/no-block-members | ||
auctionId = (now - auctionsStartTime)/auctionPeriod; | ||
Auction storage auction = auctions[auctionId]; | ||
auction.totalBid += _amount; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use safeMath
scheme to conduct auction on reputation using erc20 tokens.