The AaveDIVAWrapper
contract constructor delegates initialization to the AaveDIVAWrapperCore
constructor. However, there is a discrepancy in the order of parameters between the two constructors, which could lead to incorrect initialization and cause DoS of major contract functions.
The order of parameters in the initialization of AaveDIVAWrapperCore
constructor (_aaveV3Pool
, _diva
, _owner
) in the AaveDIVAWrapper
constructor does not match the order in the AaveDIVAWrapperCore
constructor (diva_
, aaveV3Pool_
, owner_
). This will cause using aaveV3Pool_
as DIVA contract and diva_
used as AAVE contract.
This mismatch can cause incorrect assignment of addresses, potentially leading to unintended behaviors and systemwide DOS.
If the parameters are not passed in the correct order, the contract may initialize with incorrect addresses, affecting its functionality, contract become unuseful due to the DOS of major functions and may cause unintended behaviors.
Manual Review
Ensure that the parameters are passed in the correct order when calling the AaveDIVAWrapperCore
constructor from AaveDIVAWrapper
.
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.