If the known attack described below occurs, even if there is enough time to act, there is no way to protect the AaveDIVAWrapper contract from losing tokens.
Known Issues
Integration risk with both Aave V3 and DIVA Protocol - vulnerabilities in either protocol may affect AaveDIVAWrapper.
The AaveDIVAWrapper contract sets unlimited allowances for collateral tokens to Aave and Diva, and there is no way to reset the allowance, which poses a security risk if these protocols compromised.
The contract grants infinite approval for collateral tokens to be transferred to Aave's V3 Pool and Diva. This is intended to optimize gas costs by avoiding repeated approval transactions.
In the code below, allowances can only be increased to the maximum; it is not possible to remove or decrease them.
This contract does not provide a mechanism to reduce or revoke these allowances, leaving it vulnerable in the event of a security breach at Aave or Diva.
A compromised Aave and Diva protocols could lead to unauthorized and potentially unlimited transfers of tokens from the AaveDIVAWrapper contract.
Manual Review
Add functions to dynamically reduce or revoke allowances for collateral tokens to Aave and Diva, especially in response to security threats.
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.