Closed code423n4 closed 2 years ago
remove 0 value can save gas
========================================================================
SafeERC20
by not declaring:
using SafeERC20 for IERC20;
and for example use:
SafeERC20.safeTransferFrom(IERC20(currency),collector, recipient, adjustedAmount);
can safe gas usage
ye not sure if this is a gas optimisation.
remove 0 value can save gas
========================================================================
SafeERC20
https://github.com/code-423n4/2022-02-aave-lens/blob/main/contracts/core/modules/collect/FeeCollectModule.sol#L39by not declaring:
and for example use:
can safe gas usage
========================================================================