The protocol sets unlimited approval of collateral token to AAVE V3 and wToken to DIVA protocol in registerCollateralToken function. Contract also implements _approveCollateralTokenForAave function to approve tokens for AAVE V3 in case the allowance runs out but there is no similar functionality for wTokens. The inability to update approval introduces functionality risk to the system as the wToken approval is a key step into providing liquidity in DIVA ecosystem.
In AaveDIVAWrapperCore the initial approval is set in _registerCollateralToken.
The protocol implements the _approveCollateralTokenForAave function in case the approval ever runs out.
Lack of wToken approval function (for DIVA protocol) make this functionality unusable because supply can't be provided through Wrapper contract after the initial approval runs out.
Users will not be able to provide liquidity using whitelisted tokens even though it should be possible any time if the token is registered. It means that protocol will not function as it should.
Manual review
Create a function to approve wTokens for DIVA protocol as it is done with _approveCollateralTokenForAave for AAVE V3 protocol.
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.