MorpheusAI

MorpheusAI
Foundry
22,500 USDC
View results
Submission Details
Severity: low
Invalid

Insufficient Logic in the Distribution::_validatePool() function

Summary

in the _validatePool function you have only one require statement as below

require(pool_.decreaseInterval > 0, "DS: invalid decrease interval");

this is not sufficient as Validation checks are important for preventing vulnerabilities in your contract

Vulnerability Details

for example Without proper validation, if withdrawLockPeriod is set to a value less than or equal to the current timestamp, users might be able to withdraw immediately. This could undermine the intended lock period,

you can validate it as follows

require(pool_.withdrawLockPeriod > block.timestamp, "DS: invalid withdraw lock period value");

Tools Used

manual analysis

Recommendations

add more checks in the validate pool

Updates

Lead Judging Commences

inallhonesty Lead Judge over 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.