Function: afterDeposit(uint256 amount)
This deposits the amount into Aave (from deposits in strategy vault).
Inputs
amountControl: Fully controlled.
Constraints: No constraints.
Impact: The amount to deposit.
Branches and code coverage (including function calls)
Intended branches
Calls the
_supplyfunction with the providedamountandtrueas arguments.Emits an
AaveSupplyevent.
Negative behavior
The function reverts if the caller is an address other than strategy.
Function call analysis
_supply(amount, true)What is controllable?
amount.If return value controllable, how is it used and how can it go wrong? N/A.
What happens if it reverts, reenters, or does other unusual control flow? If this reverts, the entire call fails --- no reentrancy issues.