Closed code423n4 closed 2 years ago
https://github.com/code-423n4/2022-07-fractional/blob/8f2697ae727c60c93ea47276f8fa128369abfe51/src/interfaces/IMinter.sol#L2-L10
A detailed description of the impact of this finding.
Underflow
Provide direct links to all referenced code on GitHub. Add screenshots, logs, or any other relevant proof that illustrates the concept.
Mythx
Prevent the underflow by constraining inputs using the require() statement or using the OpenZeppelin SafeMath library for integer arithmetic operations.
SafeMath: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/math/SafeMath.sol
0 - Non Bug
No possibility to underflow here
Not enough information was provided to judge this report. Closing as invalid.
Lines of code
https://github.com/code-423n4/2022-07-fractional/blob/8f2697ae727c60c93ea47276f8fa128369abfe51/src/interfaces/IMinter.sol#L2-L10
Vulnerability details
Impact
A detailed description of the impact of this finding.
Underflow
Proof of Concept
Provide direct links to all referenced code on GitHub. Add screenshots, logs, or any other relevant proof that illustrates the concept.
https://github.com/code-423n4/2022-07-fractional/blob/8f2697ae727c60c93ea47276f8fa128369abfe51/src/interfaces/IMinter.sol#L2-L10
Tools Used
Mythx
Recommended Mitigation Steps
Prevent the underflow by constraining inputs using the require() statement or using the OpenZeppelin SafeMath library for integer arithmetic operations.
SafeMath: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/math/SafeMath.sol