Chainvet
Detectors

Arithmetic

4 detectors (AR-01…AR-04) for overflow, underflow, precision loss, and unsafe length assignment.

Arithmetic detectors (AR) catch numeric bugs — overflow and underflow (especially in unchecked blocks or Solidity < 0.8), precision loss, and unsafe array-length math. 4 detectors.

IDSlugSeverityConfidenceWhat it detects
AR-01division-before-multiplicationMediumMediumInteger division performed before multiplication — avoidable precision loss.
AR-02integer-overflowMedium–HighMediumArithmetic that can overflow — medium inside an unchecked block, high on untrusted input in Solidity < 0.8.
AR-03integer-underflowMedium–HighMediumSubtraction that can underflow — medium in an unchecked block, high on untrusted input in Solidity < 0.8.
AR-04unsafe-array-length-assignmentHighMediumAn array .length assigned from a user-controlled parameter.

Remediation

Use Solidity ≥ 0.8's checked arithmetic (or SafeMath on older versions), keep multiplications before divisions to preserve precision, and don't assign array lengths from untrusted input.