The AaveDIVAWrapper
constructor incorrectly passes parameters to AaveDIVAWrapperCore
, swapping the _diva
and _aaveV3Pool
addresses. This misconfiguration causes interactions with the wrong protocols.
The constructor of AaveDIVAWrapperCore.sol
:
The constructor of `AaveDIVAWrapper.sol` :
The AaveDIVAWrapper
constructor incorrectly passes _aaveV3Pool
as the first parameter and _diva
as the second to AaveDIVAWrapperCore
, while the parent contract expects the order:
diva_
(DIVA Protocol address),
aaveV3Pool_
(Aave V3 Pool address).
This swaps the protocol addresses, causing the contract to:
Treat the Aave V3 Pool address as the DIVA Protocol.
Treat the DIVA Protocol address as the Aave V3 Pool.
Most probably all the functionalities are unlikely to work
Manual Review
Swap the first two parameters in the AaveDIVAWrapper
constructor to match AaveDIVAWrapperCore
's expected order:
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.