Christmas Dinner

First Flight #31
Beginner FriendlyFoundrySolidity
100 EXP
View results
Submission Details
Severity: medium
Invalid

Lack of check of address zero in the constructor

Description:

During the deployment of contract, there is no constructor there is no check for inputed token addresses.

Impact:

If address zero is passed, other than intended ones then it would disrupt the functionality of protocol.

Recommended Mitigation:

constructor(address _WBTC, address _WETH, address _USDC) {
host = msg.sender;
require(_WBTC != address(0) && _WETH != address(0) && _USDC != address(0));
...
}
Updates

Lead Judging Commences

0xtimefliez Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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