This report highlights a vulnerability in the StrategyMainnet.sol
contract where address parameters in the constructor lack checks against the zero address, potentially leading to critical contract failures.
Location: StrategyMainnet.sol, lines 27-38
Description: The constructor accepts addresses for _asset and _transmuter without validating that these are not the zero address (0x0). If these parameters are set to 0x0, it can lead to contract malfunction or loss of funds.
Contract Malfunction: A zero address in a key role like _asset or _transmuter cannot execute functions or interact as normal addresses, which can halt contract operations.
Irretrievable Funds: Any assets sent to the zero address are lost forever, potentially leading to financial loss for users or the protocol
Manual Review
Foundry
Implement zero address validation in the constructor.
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.