Slither

Slither

Community Analyzer

Dangerous usage of block.timestamp SLITHER-W1066

Anti-pattern
Minor

Dangerous usage of block.timestamp. block.timestamp can be manipulated by miners.

Exploit Scenario

"Bob's contract relies on block.timestamp for its randomness. Eve is a miner and manipulates block.timestamp to exploit Bob's contract.

Recommendation

Avoid relying on block.timestamp.

Learn more

timestamp on Slither's wiki.