Skip to content
low Arithmetic No SWC entry CWE-682

Dust Accumulation / Rounding Residue Lockup

SAFE-0087 Arithmetic Checked automatically by the scanner
1

What goes wrong

Repeated rounding leaves tiny residual amounts ('dust') that accumulate and may become unclaimable or be swept by privileged actors, and can be abused to grief share math.

2

How to fix it

the pattern that is safe
// Track residue and allow governed sweep; or assign rounding residue to protocol reserve.
Handle rounding residue deliberately.
Check your own contract for this

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