Could be situations, when AAVE do not have all collateral tokens, only part, (when token(not aave) has been hacked), which should be send to owner, when he claim yield. Owner could not specify receiving amount for get at least part of collateral tokens. Now he could ask only whole amount, such tx will revert.
In history, the was situation, when aave do not have all tokens, only part on aave's balance https://cointelegraph.com/news/ampl-depositors-complain-frozen-funds-aave-dao-considers-compensation
So, in such situation, owner could not receive even part of his yield).
Example: AAve work with token X, and this token has been registered as collateral in Diva wrapper.
User send 1000 X tokens to Diva wrapper and they sent to aave.
After sometimes, contract of token X (not aave project!) has been hacked and part of tokend(not all) was stolen from aave.
So, owner could receive only part of yield, but, when owner call claimYield(), amount calculated automaticaly.
This tx will revert, if aave do not have enoug tokens for sending to owner.
But if he could specify amount manualy, he could reveive at least part of tokens.
Owner could not receive at least part of collateral, if aave do not have whole amount.
Manual review
Add parameter amount in function claimYield()
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.