Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
View results
Submission Details
Severity: low
Invalid

Incorrect Auction Start Condition in whenActive

Summary:

The whenActive modifier contains the condition:

require(block.timestamp > state.startTime, "Auction not started");

This requires the current block timestamp to be strictly greater than startTime. However, when block.timestamp == state.startTime, the auction should be considered active, but this condition incorrectly prevents participation at the exact starting time.

Impact:

  • Users will not be able to participate in the auction at the exact moment it starts, leading to unintended delays.

  • If external scripts or contracts are designed to interact with the auction precisely at startTime, they will encounter failures, potentially disrupting automated processes.

Recommendation:

Modify the condition to allow participation at the exact startTime by changing > to >=:

require(block.timestamp >= state.startTime, "Auction not started");

This ensures that the auction starts as expected when block.timestamp == state.startTime, preventing unnecessary restrictions.

Updates

Lead Judging Commences

inallhonesty Lead Judge 3 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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