Closed code423n4 closed 2 years ago
Deprecated in favor of safeIncreaseAllowance() and safeDecreaseAllowance().Whenever possible, use {safeIncreaseAllowance} and {safeDecreaseAllowance} instead.
MyStrategy.sol:65: AURA.safeApprove(address(LOCKER), type(uint256).max); MyStrategy.sol:67: AURABAL.safeApprove(address(BALANCER_VAULT), type(uint256).max); MyStrategy.sol:68: WETH.safeApprove(address(BALANCER_VAULT), type(uint256).max);
Whenever possible, use {safeIncreaseAllowance} and {safeDecreaseAllowance} instead.
https://github.com/OpenZeppelin/openzeppelin-contracts/blob/bfff03c0d2a59bcd8e2ead1da9aed9edf0080d05/contracts/token/ERC20/utils/SafeERC20.sol#L38-L45
safeApprove() is deprecated
Deprecated in favor of safeIncreaseAllowance() and safeDecreaseAllowance().Whenever possible, use {safeIncreaseAllowance} and {safeDecreaseAllowance} instead.
Instances:
Recommendation:
Whenever possible, use {safeIncreaseAllowance} and {safeDecreaseAllowance} instead.
References:
https://github.com/OpenZeppelin/openzeppelin-contracts/blob/bfff03c0d2a59bcd8e2ead1da9aed9edf0080d05/contracts/token/ERC20/utils/SafeERC20.sol#L38-L45