No valid check given #779
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
duplicate-619
insufficient quality report
This report is not of sufficient quality
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
Lines of code
https://github.com/code-423n4/2023-10-nextgen/blob/8b518196629faa37eae39736837b24926fd3c07c/smart-contracts/MinterContract.sol#L233
Vulnerability details
Impact
msg.value check will pass if _numOfTokens is 0 even ,but it will get stuck at looping causing an error
Proof of Concept
Tools Used
Manual Review
Recommended Mitigation Steps
Add a check before msg.value >= (getPrice(col) * _numberOfTokens)
Assessed type
Error
The text was updated successfully, but these errors were encountered: