The variables, FACTORY_ADDRESS
and STADIUM_ADDRESS
, can be initialized identically. However, if this process is not successfully executed, the funds associated with these addresses may be at risk of loss.
In the constructor, both FACTORY_ADDRESS
and STADIUM_ADDRESS
are initialized and verified against address(0)
, which aligns with best practices. However, there is no verification in place to ensure that these two addresses are not identical.
Should this occur, the funds allocated for fees would be irretrievable.
Manual code review
Please incorporate a verification step within the constructor as follows:
if (factoryAddress == stadiumAddress) revert Distributor__CannotBeSameAddress();
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.