safeApprove function has been deprecated by OZ and it shouldn't be used.
This function has been used in PriorityPool.sol, WithdrawalPool.sol, StakingPool.sol, LSTRewardsSplitterController.sol, VaultControllerStrategy.sol contracts.
The SafeERC20.sol contract suggests its usage is discouraged.
Using this deprecated function can lead to unintended reverts and potentially the locking of funds and also frontrunings.
A deeper discussion on the deprecation of this function is in OZ issue below.
https://github.com/OpenZeppelin/openzeppelin-contracts/issues/2219
The OpenZeppelin ERC20 safeApprove() function has been deprecated, as seen in the comments of the OpenZeppelin code.
Medium
Manual Analysis
- Whenever possible, use safeIncreaseAllowance and safeDecreaseAllowance instead.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.