Solidity version greater or equal to 0.8.0, the solidity will auto revert if the calculation overflow/underflow. Therefore, the use of SafeMath.sol library is unnecessary.
Attack Scenario\
Use of unnecessary library might cause waste of gas in contract deployment.
Attachments
NA
Proof of Concept (PoC) File
Manual Analysis
Revised Code File (Optional)
The contract should use the built-in checks and remove SafeMath from the
dependencies.
Github username: @erictee2802 Twitter username: 0xEricTee Submission hash (on-chain): 0x019fa3d9a18635e2a56bc69b694244390db095cee79870f7a9c6a080ad023a87 Severity: low
Description: Description\
Solidity version greater or equal to 0.8.0, the solidity will auto revert if the calculation overflow/underflow. Therefore, the use of
SafeMath.sol
library is unnecessary.Attack Scenario\
Use of unnecessary library might cause waste of gas in contract deployment.
Attachments
NA
Manual Analysis