Open hats-bug-reporter[bot] opened 1 year ago
Thanks for the submission. I'm not sure why not allowing zero withdraws will be a problem. Aave has not allowed zero withdraws and they have not suffered a vulnerability relating to this.
If nothing is being withdrawn, how will funds be locked in the contract?
Github username: @@tamjid0x01 Submission hash (on-chain): 0xed4af40026230c137d1d43b284f3f17e573697cf79f3a5fc7d48bff5d96652b2 Severity: medium severity
Description: Description\ Funds might revert in an emergency
Attack Scenario
After depositing and withdrawing from the Aave lending pool, the current position is 0 and the strategy is in debt.
Attachments
The main problem is that Aave lending pool doesn't allow 0 withdrawals.
funds might revert in an emergency if there is no position on the lending pool.
As a result, the funds might be locked inside the Contracts. I think This one an edge case.
Recommended Mitigation Steps
We should check 0 withdrawal in _withdraw().