safeApprove deprecated #114
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
duplicate
This issue or pull request already exists
Handle
sirhashalot
Vulnerability details
Impact
The OpenZeppelin SafeERC20
safeApprove()
function has been deprecated, as seen in the comments of the OpenZeppelin code. Using this deprecated function can lead to unintended reverts and potentially the locking of funds. A deeper discussion on the deprecation of this function is in OZ issue #2219.Proof of Concept
The deprecated function is found on lines 82-83 of sNOTE.sol.
Recommended Mitigation Steps
As suggested by the OpenZeppelin comment, replace
safeApprove()
withsafeIncreaseAllowance()
.The text was updated successfully, but these errors were encountered: