Core Contracts

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

Hardcoded BLOCKS_PER_DAY Causes Inaccurate Time Calculations Across Chains

Summary

The contract hardcodes the number of blocks per day (BLOCKS_PER_DAY = 7200), assuming a fixed block time across all chains. However, different blockchain networks have varying block times, making this assumption incorrect and potentially leading to incorrect time-dependent calculations.

Vulnerability Details

The contract uses BLOCKS_PER_DAY = 7200, assuming a block time of 12 seconds.

  • When deployed on networks with different block times, this results in miscalculated time-dependent operations.

  • Any function relying on BLOCKS_PER_DAY for time-based logic (e.g., staking durations, reward distributions, time locks) will execute at incorrect intervals.

Impact

Incorrect timing: Functions dependent on BLOCKS_PER_DAY will trigger too early or too late on chains with different block times.

Tools Used

Manual code review

Recommendations

Protocol should ensure accurate time calculations across multiple blockchain networks.

Updates

Lead Judging Commences

inallhonesty Lead Judge 6 months ago
Submission Judgement Published
Validated
Assigned finding tags:

RAACMinter hardcoded BLOCKS_PER_DAY breaks cross-chain compatibility with variable token emission rates

Known issue LightChaser M12

inallhonesty Lead Judge 6 months ago
Submission Judgement Published
Validated
Assigned finding tags:

RAACMinter hardcoded BLOCKS_PER_DAY breaks cross-chain compatibility with variable token emission rates

Known issue LightChaser M12

Appeal created

inallhonesty Lead Judge 5 months ago
Submission Judgement Published
Invalidated
Reason: Design choice
Assigned finding tags:

RAACMinter hardcoded BLOCKS_PER_DAY breaks cross-chain compatibility with variable token emission rates

Known issue LightChaser M12

Support

FAQs

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