Core Contracts

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

No Mechanism to Withdraw Remaining ZENO

Summary

After the auction ends, there is no mechanism for the owner to withdraw any remaining ZENO tokens.

This could lead to locked funds if not all tokens are sold during the auction.

Vulnerability Details

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

Impact

Tools Used

Recommendations

  • Add a function for the owner to withdraw remaining ZENO tokens after the auction ends.

function withdrawRemainingZENO() external onlyOwner {
require(block.timestamp >= state.endTime, "Auction not ended");
uint256 remaining = state.totalRemaining;
state.totalRemaining = 0;
zeno.mint(owner(), remaining);
emit RemainingZENOWithdrawn(remaining);
}
Updates

Lead Judging Commences

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!