Flow

Sablier
FoundryDeFi
20,000 USDC
View results
Submission Details
Severity: low
Invalid

Scaling Factor for descaleAmount and scaleAmount

Vulnerability Details

If decimals is greater than 18, the calculation for scaleFactor will underflow in both descaleAmount and scaleAmount due to the unchecked block, potentially leading to incorrect calculations.

Impact

Incorrect scaleFactor calculations can cause incorrect token amounts, potentially resulting in unexpected transfer values if an overflow or underflow occurs.

Tools Used

manual analysis

Recommendations

Add validation to ensure decimals is not greater than 18 before calculating scaleFactor, to prevent unintended results:

require(decimals <= 18, "Decimals exceed maximum allowed");
Updates

Lead Judging Commences

inallhonesty Lead Judge
10 months ago
inallhonesty Lead Judge 9 months ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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