Skip to content
medium Time Dependence No SWC entry CWE-841

Timelock / Deadline Missing on Sensitive Action

SAFE-0066 Time Dependence Checked automatically by the scanner
1

What goes wrong

Sensitive parameter changes or claims have no minimum delay or expiry, enabling abrupt rug-style changes or stale-but-still-valid actions.

2

How to fix it

the pattern that is safe
function queueFee(uint f) external onlyOwner { pendingFee=f; effAt=block.timestamp+2 days; }
function applyFee() external { require(block.timestamp>=effAt); fee=pendingFee; }
Add timelocks and deadlines to sensitive actions.
Check your own contract for this

The SaferICO scanner runs 201 detectors over your Solidity source, SAFE-0066 among them. Paste an address or the source itself — a small per-scan fee, shown before you sign, or unlimited on any plan.

Run the scanner See how it is attacked Read the docs