DeFiFoundry
20,000 USDC
View results
Submission Details
Severity: low
Invalid

Using `SafeMath` when compiler is ^0.8.0

Summary

There is no need to use SafeMath when compiler is ^0.8.0 because it has built-in under/overflow checks.

Vulnerability Details

SafeMath is being used in several contracts, but it is pretty much useless since the we are using solidity version 0.8.21

import { SafeMath } from "lib/openzeppelin-contracts/contracts/utils/math/SafeMath.sol";

Impact

Clogging the codebase with useless libraries

Tools Used

manual review

Recommendations

Don't use safeMath

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.