DeFiFoundry
20,000 USDC
View results
Submission Details
Severity: low
Invalid

Bid amount validation

Vulnerability Details

The FjordAuction::bid(amount)does not check that the amountis greater than 0. The issue could cause minor disruptions or inefficiencies. The likelihood of someone intentionally bidding 0may be low, however, with no check it remains a possibility

function bid(uint256 amount) external {
if (block.timestamp > auctionEndTime) {
revert AuctionAlreadyEnded();
}
bids[msg.sender] = bids[msg.sender].add(amount);
totalBids = totalBids.add(amount);
fjordPoints.transferFrom(msg.sender, address(this), amount);
emit BidAdded(msg.sender, amount);
}

Recommendations

+ require(amount > 0, "Amount should be greater than 0");
Updates

Lead Judging Commences

inallhonesty Lead Judge 9 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.