In AaveDIVAWrapperCore::_addLiquidity
function safeTransfers collateralToken from the msg.sender to the protocol address to provide liquidity to the aaveLiquidityPool, but the _addLiquidity function doesn't check the _collateralAmount if it's zero or not.
Some ERC20 tokens like such as LEND
will revert if this is attempted, which may cause transactions that involve other tokens (such as batch operations) to fully revert.
Manual Review
Add a zero Amount check in the beginning of the function.
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.