The hardcoded BLOCKS_PER_DAY value in the RAACMinter contract assumes a fixed block time, which may not be accurate when deployed on different blockchain networks. This can lead to incorrect reward emission rates, affecting the contract’s functionality.
The RAACMinter contract defines a constant BLOCKS_PER_DAY to determine the expected number of blocks per day.
However, this value is specific to Ethereum (assuming ~12s block time, 7200 blocks/day). If deployed on a network with a different block time (e.g., Binance Smart Chain with ~3s block time, 28800 blocks/day, Polygon with ~2s block time, 43200 blocks/day), the contract will incorrectly calculate reward distributions and emissions.
A chain with faster block times (e.g., BSC) will reduce the effective rewards per block, slowing down emissions.
Incorrect reward emissions: Rewards may be distributed at an incorrect rate.
Unfair distribution: Users on different chains may receive more or fewer rewards than expected.
Manual Review
Replace the hardcoded BLOCKS_PER_DAY value with a configurable state variable.
Known issue LightChaser M12
Known issue LightChaser M12
Known issue LightChaser M12
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.