In the FjordAuction
contract, users still can bid or unbid when block.timestamp
is equal to auctionEndTime
.
Users cannot bid() or unbid() an auction if block.timestamp > auctionEndTime
.
The auction cannot be ended if block.timestamp < auctionEndTime
.
Above conditions do not cover the case when block.timestamp == auctionEndTime
.
Users can still bid or unbid if block.timestamp
reaches auctionEndTime
.
vscode
The protocol doesn't properly treat the `block.timestamp == auctionEndTime` case. Impact: High - There are at least two possible impacts here: 1. By chance, user bids could land in a block after the `auctionEnd()` is called, not including them in the multiplier calculation, leading to a situation where there are insufficient funds to pay everyone's claim; 2. By malice, where someone can use a script to call `auctionEnd()` + `bid(totalBids)` + `claimTokens()`, effectively depriving all good faith bidders from tokens. Likelihood: Low – The chances of getting a `block.timestamp == auctionEndTime` are pretty slim, but it’s definitely possible.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.