Core Contracts

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

Title: Incomplete Handling of Unsold Tokens and Bypassable Auction End Condition in buy Function

Summary

The incomplete handling of unsold tokens and bypassable auction end condition in the buy function is a medium severity issue that can lead to ambiguity, inefficiency, and unfairness in the auction process. Implementing early auction termination, clearly defining the handling of remaining tokens, and conducting thorough audits and testing are essential to address this issue and enhance the efficiency and fairness of the auction. The severity of this issue is classified as medium due to the potential impact on user experience and auction fairness.

Vulnerability Details

The buy function in the Auction contract does not handle the scenario where not all ZENO tokens are sold by the end of the auction. This can lead to ambiguity regarding the ownership and handling of the remaining tokens. Additionally, the auction end condition can be bypassed, affecting the efficiency and fairness of the auction process. The function should ensure early auction termination when tokens are sold out and clearly define the handling of remaining tokens.

Impact

  • Ambiguity of Unsold Tokens: The contract does not specify what happens to the remaining tokens if not all are sold, leading to potential confusion and mismanagement.

  • Bypassable Auction End Condition: The auction end condition can be bypassed, affecting the efficiency and fairness of the auction process.

  • User Experience: The lack of clarity and potential

Tools Used

Recommendations

  1. Early Auction Termination: Modify the checkAuctionEnded and buy functions to ensure early auction termination when tokens are sold out.

  2. Handling of Unsold Tokens: Clearly define the handling and ownership of remaining tokens if not all are sold by the end of the auction.

  3. Audit and Testing: Conduct a thorough audit and testing of the contract to ensure that the auction end condition and token handling logic are correctly implemented and secure.

Updates

Lead Judging Commences

inallhonesty Lead Judge
5 months ago
inallhonesty Lead Judge 3 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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