This repository has been archived by the owner on Mar 10, 2024. It is now read-only.
codegpt - Deprecated safeApprove
method
#52
Labels
Excluded
Excluded by the judge without consulting the protocol or the senior
Non-Reward
This issue will not receive a payout
codegpt
medium
Deprecated
safeApprove
methodSummary
safeApprove()
function is deprecated and still being used in theMultiAccount
contract.Vulnerability Detail
safeApprove()
function has been deprecated by OpenZeppelin team since v3.1.0:However, safeApprove() is still used in the following functions in
MultiAccount
contract:depositForAccount
depositAndAllocateForAccount
Impact
Code Snippet
https://github.com/sherlock-audit/2023-08-symmetrical/blob/main/symmio-core/contracts/multiAccount/MultiAccount.sol#L142C1-L176C6
Tool used
Manual Review
Recommendation
Recommend using
safeIncreaseAllowance()
andsafeDecreaseAllowance()
function instead.The text was updated successfully, but these errors were encountered: