Summary
The constructor of the AaveDIVAWrapperCore
contract calls a void constructor of the Ownable(owner_)
contract. This call is unnecessary because the parent constructor does not execute any code, which could lead to confusion and misinterpretation by developers.
In the following constructor from AaveDIVAWrapperCore
, the Ownable(owner_)
call is redundant:
The parent constructor Ownable(owner_)
does not execute any meaningful initialization code for AaveDIVAWrapperCore
. Including this call can mislead developers into believing that critical setup or state initialization is happening, when in fact, no such operations occur.
By leaving this unnecessary call in place, the following issues arise:
Code Clarity: Developers might assume the Ownable(owner_)
call performs actions specific to the AaveDIVAWrapperCore
initialization, which it does not.
Misinterpretation Risk: Auditors or contributors may misinterpret the purpose of this void call, leading to incorrect assumptions about the contract's behavior.
Remove the Ownable(owner_)
call in the constructor of AaveDIVAWrapperCore
to enhance code clarity and avoid unnecessary complexity. Ensure the functionality provided by the parent Ownable
contract is adequately accounted for elsewhere in the codebase if required.
Updated Constructor:
This update simplifies the code while retaining the original functionality and preventing unnecessary assumptions about the parent's constructor behavior.
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.