Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: low
Invalid

Lack of zero address validation

Summary

Zero address validation is missing in the constructor or functions of LoveToken.sol, Airdrop.sol, Staking.sol, and Vault.sol

Vulnerability Details

The following are the constructors or functions lacking zero address validation

Constructor of LoveToken.sol

Constructor of Airdrop.sol

Constructor of Staking.sol

initVault() function of Staking.sol

Impact

lacks zero address validation , since parameter of costructor are used initialize state variable which are used in other function of the contract , error in these state variable can lead to redeployment of contract

Tools Used

manual review

Recommendations

add require condition to check for zero address

Updates

Lead Judging Commences

0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

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