Core Contracts

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

Missing validation in Auction constructor parameters

Summary

The Auction contract's constructor lacks critical parameter validation that could lead to the auction being deployed in an unusable state:

constructor(
address _zenoAddress,
address _usdcAddress,
address _businessAddress,
uint256 _startTime,
uint256 _endTime,
uint256 _startingPrice,
uint256 _reservePrice,
uint256 _totalAllocated,
address _initialOwner
)

The following scenarios are not prevented:

1. _startTime could be set to a past timestamp

2. _endTime could be less than or equal to _startTime

3. _startingPrice could be less than _reservePrice

4. _totalAllocated could be zero

Impact

Any of these conditions would create an invalid auction state that could either be immediately ended, never start, or have incorrect pricing mechanics

Tools Used

Manual review

Recommendations

Apply proper validation in contructor arguments

Updates

Lead Judging Commences

inallhonesty Lead Judge 4 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.