Handle
pauliax
Vulnerability details
Impact
IAaveIncentivesController function claimRewards returns the actual rewards claimed so I think it makes sense to
emit ClaimAaveRewardTokenToTreasury(amount);
with that actual returned value as in theory, it may differ from amount.
Recommended Mitigation Steps
uint256 rewards = IAaveIncentivesController(aaveIncentivesController).claimRewards(rewardsDepositedAssets, amount, treasury);
emit ClaimAaveRewardTokenToTreasury(rewards);