Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: low
Invalid

Timestamp deviation in arbitrum deployment can impact time based contract logic

Summary

A vulnerability exists due to the deviation in block.timestamp on Arbitrum, affecting contracts relying on precise time-based logic.

Vulnerability Details

Staking and unstaking mechanisms calculate durations based on the difference between the block.timestamp at staking initiation and the block.timestamp at the point of unstaking. Arbitrum's timestamp handling, determined by the sequencer's clock, allows for timestamps that can deviate significantly from real-time (up to 24 hours in the past and potentially future-dated by up to an hour). This discrepancy arises because Arbitrum batches transactions before submitting them to Ethereum, during which the sequencer sets block.timestamp based on the time of submission to L1, not when transactions are processed on L2. As a result, the calculated staking duration could inaccurately reflect the actual time staked, impacting reward distribution.

Source

Impact

Stake rewards could be higher (or lower) then they should be based on actual time staked.

Tools Used

Manual Review

Recommendations

If time based logic accuracy is essential, consider only deploying on mainnet.

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity
Assigned finding tags:

arbitrum timestamp

Support

FAQs

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