Closed sherlock-admin closed 1 year ago
0xmuxyz
medium
safeApprove()
safeIncreaseAllowance()
safeDecreaseAllowance()
0xmuxyz
medium
safeApprove()
function deprecated is used in multiple linesSummary
safeApprove()
function deprecated is used in multiple lines.Vulnerability Detail
safeApprove()
function has been deprecated by OpenZeppelin team: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/2268safeApprove()
deprecated is still used in the multiple lines in this repo.Impact
Code Snippet
safeApprove()
function deprecated is used in the following lines in this repo:Tool used
Recommendation
safeIncreaseAllowance()
function andsafeDecreaseAllowance()
function should be used. https://docs.openzeppelin.com/contracts/4.x/api/token/erc20#SafeERC20-safeApprove-contract-IERC20-address-uint256-