First Flight #18: T-Swap

First Flight #18
Beginner FriendlyDeFiFoundry
100 EXP
View results
Submission Details
Severity: medium
Invalid

No check in the constructor

Summary

No check in the constructor

Vulnerability Details

The constructor modifies the state variable i_wethToken with the passed argument wethToken that is not verified if it is a real contract.

Impact

Tools Used

Manual Review

Recommendations

Code a way to verify that the address is a real contract (also != zero address). If it is not a real one, revert with a new error PoolFactory__ContractDoesNotExist(address tokenAddress).

Updates

Appeal created

inallhonesty 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.