Skip to content
Request an audit

‹ Findings database

emissionStart has no effect, rewards will start accumulating starting on the first staker

Low/InfoMetaZero Staking audit·Three Sigma·Omnichain RWA tokenisation·6th April, 20243S-MZ-L02

Description

emissionStart is set in the constructor, but it has no use other than summing with the emissionDuration to set the emissionEnd. Rewards will be accrued as long as block.timestamp is before emissionEnd and totalStakedAccruingRewards is non null.

Recommendation

Either remove this variable or change the logic to accumulate rewards only after emission starts.

Status

Addressed in #67d85d0.