DeFiHardhat
21,000 USDC
View results
Submission Details
Severity: low
Invalid

Missing Documentation (Informational)

Summary

The LibChop::chop function is missing documentation for the supply parameter.

Vulnerability Detail

The @param documentation for the supply parameter is missing in the LibChop::chop function.

Impact

The absence of documentation for the supply parameter could lead to confusion for developers trying to understand the function's usage. It may also increase the likelihood of errors or unintended behavior when interacting with the function.

Code Snippet

function chop(
address unripeToken,
uint256 amount,
uint256 supply
) internal returns (address underlyingToken, uint256 underlyingAmount) {
AppStorage storage s = LibAppStorage.diamondStorage();
underlyingAmount = LibUnripe.getPenalizedUnderlying(unripeToken, amount, supply);
// remove the underlying amount and decrease s.recapitalized if token is unripe LP
LibUnripe.removeUnderlying(unripeToken, underlyingAmount);
underlyingToken = s.u[unripeToken].underlyingToken;
}

Tool used

Manual Review

Recommendation

Add the following documentation for the supply parameter:

* @param supply The total supply of the unripeToken.
Updates

Lead Judging Commences

giovannidisiena Lead Judge about 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.