20,000 USDC
View results
Submission Details
Severity: gas

The other loans will not be seized if the first loan wouldn't be started yet.

Summary

The other loans will not be seized if the first loan wouldn't be started yet.

Vulnerability Details

The other loans will not be seized if the first loan wouldn't be started yet.

if (loan.auctionStartTimestamp == type(uint256).max)
revert AuctionNotStarted();
if (
block.timestamp <
loan.auctionStartTimestamp + loan.auctionLength
) revert AuctionNotEnded();

Impact

The other loans will not be seized if the first loan wouldn't be started yet.

Tools Used

Manual

Recommendations

It should continue if auction is not started or not ended yet instead of revert.

if (loan.auctionStartTimestamp == type(uint256).max)
continue;
if (
block.timestamp <
loan.auctionStartTimestamp + loan.auctionLength
) continue;

Support

FAQs

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