Skip to content

Usage of SafeMath is redundant#

Informational

The SafeMath library is used to perform arithmetic operations. In older Solidity versions it was used to prevent overflow/underflow. However, starting with Solidity 8.0 the compiler has built in overflow checking. Meaning that SafeMath adds no additional safety to this code base. It is just wrapping arithmetic operations with no additional checks. But maybe the intention of using it is purely visual or to avoid rewriting older code.

Recommendation#

Remove SafeMath library.