Should call want.safeApprove(address(lp), 0); #57
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
disagree with severity
Sponsor confirms validity, but disagrees with warden’s risk assessment (sponsor explain in comments)
duplicate
This issue or pull request already exists
Handle
cccz
Vulnerability details
Impact
In the deposit function, when want.allowance(address(this), address(lp)) < amount, the contract should call want.safeApprove(address(lp), 0);
Proof of Concept
https://github.com/code-423n4/2022-01-sherlock/blob/main/contracts/managers/AaveV2Strategy.sol#L70-L72
Tools Used
Manual analysis
Recommended Mitigation Steps
The text was updated successfully, but these errors were encountered: