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

no check if underlyingToken is zero address

Summary

no check if underlyingToken is zero address

Vulnerability Details

function addUnripeToken is missing a zero address check for underlyingToken parameter, which could maybe allow underlyingToken to be mistakenly set to 0 address.

Impact

this can lead to unexpected behavior.

Tools Used

Manual code review

Recommendations

Add a require() check for zero address for the underlyingToken parameter before changing the underlyingToken address in the function.

Updates

Lead Judging Commences

giovannidisiena Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Design choice
Assigned finding tags:

Informational/Invalid

Support

FAQs

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