Critical actions are routed through a timelock for transparency, but the same functions are also callable directly by an admin/owner, defeating the delay users rely on to react to malicious proposals.
// setFee is callable by both timelock and owner. // owner skips the 48h delay and sets fee to 100% instantly, // giving users no window to exit.
// the timelock must be the ONLY holder of the admin role
require(msg.sender == address(timelock), "only timelock");
Largest recorded losses in the same failure class — related, not the same bug:
The SaferICO scanner runs 201 detectors over your Solidity source, SAFE-0228 among them. Paste an address or the source itself — a small per-scan fee, shown before you sign, or unlimited on any plan.