The AaveDIVAWrapper
contract experienced issues during the _registerCollateralToken
function, mainly due to high gas costs or reverts when deploying new WToken
contracts. This could potentially leave the contract unusable if the WToken
deployment fails due to gas constraints.
High Gas Costs or Revert:
The deployment of WToken
within the _registerCollateralToken
function can result in high gas costs or reverts, locking the execution and making the contract unusable.
Functionality: The inability to successfully deploy WToken
contracts prevents the AaveDIVAWrapper
from registering collateral tokens, disrupting its core functionality.
Usability: If the WToken
deployment fails, it could leave the entire function execution in a locked state, rendering the contract unusable.
Cost: High gas costs associated with deploying WToken
contracts may make the function prohibitively expensive to execute.
Testing and manual review
Use a Factory Pattern:
Deploy WToken
contracts outside of critical transactions.
Utilize a factory contract dedicated to deploying WToken
contracts.
Example Factory Pattern:
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.