📜  security no-block-members:避免使用“block.timestamp”. - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:04.410000             🧑  作者: Mango

代码示例1
This linter advice is incorrect and in practice block.timestamp is safe. 
The risks of using block numbers are higher because the block production rate
is not deterministic. The linter advice is based on non-realistic security 
assumptions that are not a concern under any kind of real scenario.