MorpheusAI

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

Subtraction may underflow if multiplication is too large

Summary

In scenarios where a large multiplication precedes a subtraction, there is a heightened risk of underflow. This can occur if the multiplication results in a significantly large value, potentially leading to an underflow when it is subsequently subtracted.
Such underflows can cause critical miscalculations, affecting the contract's logic and integrity.

Vulnerability Details

File: contracts/libs/LinearDistributionIntervalDecrease.sol
51: uint256 intervalFullReward_ = initialAmount_ - intervalsPassed_ * decreaseAmount_;
153: uint256 ip_ = ((endTime_ - payoutStart_ - intervalsPassedBefore_ * interval_) / interval_);
Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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