The Aave pool is hardcoded and its not recommended by aave doc.
The owner of protocol needs to provide Aave pool address when deploying AaveDIVAWrapper
contract in its constructor()
.
we can see this aave pool address is stored in immutable
variable in AaveDIVAWrapperCore
contract.
However the Aave doc mentions that PoolAddressProvider
contract should be queried everytime to provide the current pool address. Because if the pool contract were migrated to a new address, it would disrupt the core logic of this protocol.
https://aave.com/docs/developers/smart-contracts/pool-addresses-provider
instance of this issue in other contest:
https://github.com/hats-finance/Origami-0x998f1b716a5022be026ca6b919c0ddf45ca31abd/issues/58
Breaking of core logic and every calls to Aave pool can be revert
Manual Review
Consider using PoolAddressProvider
contract.
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.