Open code423n4 opened 2 years ago
Information : L005 - Do not use Deprecated Library Functions SafeERC20.sol - safeApprove
core/connext/libraries/AssetLogic.sol:347: SafeERC20.safeApprove(IERC20(_assetIn), address(pool), _amountIn);
Usage of deprecated library functions, for instance safeApprove from OpenZeppelin's SafeERC20 library is discouraged, it is recommended to use safeIncreaseAllowance and safeDecreaseAllowance instead, for example :
safeApprove
SafeERC20
safeIncreaseAllowance
safeDecreaseAllowance
core/connext/libraries/AssetLogic.sol:347: SafeERC20.safeIncreaseAllowance(IERC20(_assetIn), address(pool), _amountIn);
fixed
approval needs to be reset to 0 and then increased, so we are stuck using safeApprove method in order to do so
I suppose this issue is still valid, however
Don't use deprecated library functions
Information : L005 - Do not use Deprecated Library Functions SafeERC20.sol - safeApprove
Instances include :
Recommendation
Usage of deprecated library functions, for instance
safeApprove
from OpenZeppelin'sSafeERC20
library is discouraged, it is recommended to usesafeIncreaseAllowance
andsafeDecreaseAllowance
instead, for example :