#59715 [SC-Low] periodattimestamp will return different period for the same timestamp input
Description
Brief/Intro
Vulnerability Details
function periodAtTimestamp(uint48 timestamp) public view returns (uint256) {
PeriodConfiguration memory periodConfiguration = periodConfigurationAtTimestamp(timestamp);
// solhint-disable-next-line max-line-length
return periodConfiguration.startingPeriod + _sinceEpoch(periodConfiguration.epoch) / periodConfiguration.duration;
}Impact Details
References
Proof of Concept
Proof of Concept
Previous#59728 [SC-Low] underflow issue leading to a periodattimestamp dosNext59691 sc low missing disableinitializers allows direct implementation initialization leading to vault takeover
Was this helpful?