Core Contracts

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

user will get wrong result If Auction not started

Summary

Vulnerability Details

In Auction.sol in checkAuctionEnded function If Auction not started on that case if user click on this function, then user will get wrong result

function checkAuctionEnded() external {
require(block.timestamp >= state.endTime, "Auction not ended");
emit AuctionEnded(getPrice());
}

Impact.

If Auction not started on that case if user click on this function, then user will get wrong result

Tools Used

Manual Review

Recommendations

In Auction.sol in checkAuctionEnded function add below commented line

function checkAuctionEnded() external {
@>>> require(block.timestamp < state.startTime, "Auction not started");//add this line
require(block.timestamp >= state.endTime, "Auction not ended");
emit AuctionEnded(getPrice());
}
Updates

Lead Judging Commences

inallhonesty Lead Judge 7 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
inallhonesty Lead Judge 7 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.

Give us feedback!