You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 (OpenZeppelin/openzeppelin-contracts#2219). The OpenZeppelin ERC20 safeApprove() function has been deprecated, as seen in the comments of the OpenZeppelin code.
Attack Scenario
Describe how the vulnerability can be exploited.
Github username: --
Submission hash (on-chain): 0x013b8f250b24421352d875f4e429ba781770429c144298172fc00cec16953930
Severity: low
Description:
Description
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 (OpenZeppelin/openzeppelin-contracts#2219). The OpenZeppelin ERC20 safeApprove() function has been deprecated, as seen in the comments of the OpenZeppelin code.
Attack Scenario
Describe how the vulnerability can be exploited.
Attachments
https://github.com/hats-finance/hats-contracts/blob/af0830ef3dccdb0e4bcf0e746147f252c98fd055/contracts/HATVaultsRegistry.sol#L449C36-L449C36
Always do safeApprove(0) if the allowance is being changed, or use safeIncreaseAllowance()
The text was updated successfully, but these errors were encountered: