Skip to content

Use of Deprecated / Dangerous Constructs (selfdestruct, suicide, throw)

SAFE-0076 Best Practice Checked automatically by the scanner
1

What goes wrong

Use of selfdestruct (removal scheduled by EIP-6780), deprecated keywords, or constructs that can be abused to destroy contracts or that signal outdated, risky patterns.

2

How to fix it

the pattern that is safe
// Remove selfdestruct; use pause + withdrawal instead for decommissioning.
SWC-106. Avoid selfdestruct; mind EIP-6780.
3

Where this has happened

Largest recorded losses in the same failure class — related, not the same bug:

Check your own contract for this

The SaferICO scanner runs 201 detectors over your Solidity source, SAFE-0076 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