safeApprove deprecated #80
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
disagree with severity
Sponsor confirms validity, but disagrees with warden’s risk assessment (sponsor explain in comments)
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 in:
Tools Used
Manual analysis
Recommended Mitigation Steps
As suggested by the OpenZeppelin comment, replace
safeApprove()
withsafeIncreaseAllowance()
.The text was updated successfully, but these errors were encountered: