Usage of deprecated safeApprove() function #61
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
The OpenZeppeling ERC20
safeApprove()
function has been deprecated, as seen in the comments of the OpenZeppelin code.Impact
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()
orsafeDecreaseAllowance()
instead.The text was updated successfully, but these errors were encountered: