In several contract within the DittoETH protocol, there are missing checks for zero addresses in the constructor. These missing checks could lead to unexpected scenarios.
The missing zero address checks are present in various functions within the protocol's contracts. Specifically, in the constructor functions of several contracts, there is a lack of checks to ensure that certain addresses provided as parameters are not set to the zero address (address(0)). Failing to validate these addresses could result in unexpected behavior in the protocol.
Manual Review
Add zero address checks
https://github.com/Cyfrin/2023-09-ditto/blob/main/contracts/facets/YieldFacet.sol#L30C1-L32C6
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.