As stated in the SWC116 (https://swcregistry.io/docs/SWC-116/) using block.timestamp and block.number in Smart Contracts under Proof of Work was problematic.
Block.timestampcould be influenced by the miners up to 15s- Using
block.numberas proxy for time is inaccurate since the time between block depended on the difficulty i.e. was not fixed.
Do those two issues still exists under Proof of Stake? If not, are there any other/new concerns about using block values as a proxy for time?
block.timestamp. Otherwise you're right https://ethereum.stackexchange.com/questions/135445/miner-modifiability-of-block-timestamp-after-the-merge (In PoW block.timestamp just had to be greater than its parent https://ethereum.stackexchange.com/questions/5927/how-would-a-miner-cope-with-a-huge-block-time) – eth Nov 15 '23 at 16:16