Core Contracts

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

`RAACPrimeRateOracle` Implementation Deviates from Documentation

Summary

The implementation of RAACPrimeRateOracle does not align with the design specified in the documentation. Key discrepancies include:

  • Missing Time-Based Update Interval: No mechanism to enforce a minimum delay between price updates, risking excessive frequency.

  • Incorrect Function Implementation: The setHousePrice function is used for oracle-driven price setting, while the documentation specifies that manual price updates should be handled by a separate updatePriceFromOracle method.

Impact

  • Excessive Gas Costs: Unrestricted updates may drain funds through frequent transactions.

  • Functional Ambiguity: Mixing automated and manual update logic risks bugs or unintended behavior.

Tools Used

  • Manual Review

Recommendations

  • Add a time-based update interval to prevent excessive frequency.

  • Restructure Function Roles:
    Rename setHousePrice to updatePriceFromOracle for clarity.
    Reserve setHousePrice (if needed) for automated/internal adjustments.

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!