The constructor of the AaveDIVAWrapper
contract does not match the parameter order of its parent contract, AaveDIVAWrapperCore
. This inconsistency may cause the contract to malfunction.
The constructor of AaveDIVAWrapper
is defined as follows:
However, in the parent contract AaveDIVAWrapperCore
, the constructor's parameter order is:
Since the parameters _aaveV3Pool
and _diva
are passed in the wrong order, it results in incorrect address assignments:
_aaveV3Pool
(Aave V3 Pool address) is mistakenly assigned to diva_
(DIVA Protocol address).
_diva
(DIVA Protocol address) is mistakenly assigned to aaveV3Pool_
(Aave V3 Pool address).
Due to incorrect parameter transmission, the deployed contract may fail to function properly.
Manual
Modify the AaveDIVAWrapper
constructor to correctly match the parameter order of AaveDIVAWrapperCore
:
This ensures that parameters are passed in the correct order, preventing incorrect address assignments.
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.