The AaveDIVAWrapper
contract inherits from the AaveDIVAWrapperCore
contract. However, there is a parameter mismatch in the constructor definitions of these contracts
In the AaveDIVAWrapper
contract, the first parameter in the constructor is _aaveV3Pool
, representing the address of the Aave V3 pool while In the AaveDIVAWrapperCore
constructor, the first parameter is diva_
, representing the address of the DIVA protocol. This inconsistency in parameter ordering could lead to deployment issues if the contracts are not instantiated correctly, since constructors are invoked during deployment, passing arguments in the wrong order may result in ** **_aaveV3Pool
may be incorrectly assigned to diva_
and vice versa or misconfigured contracts could fail to operate as expected, causing potential loss of functionality.
If arguments are passed in the wrong order during deployment this could result in invalid calls to these contracts, leading to immediate reverts
manual
Run forge install foundry-rs/forge-std --no-commit
in the terminal
Create a new folder: contracts/test
Create a new file named DivaTest.t.sol
in contracts/test/
and paste the following code:
run forge test
to run the test
Ensure that both AaveDIVAWrapper
and AaveDIVAWrapperCore
use the same parameter order in their constructors.
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.