Safe Approve Function Is Deprecated - safeIncreaseAllowance and safeDecreaseAllowance commented out #229
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
duplicate
This issue or pull request already exists
Handle
defsec
Vulnerability details
Impact
On the helper contract, It has been observed that to safeIncreaseAllowance and safeDecreaseAllowance are commented out. (OpenZeppelin/openzeppelin-contracts#2268) safeApprove function is deprecated.
Proof of Concept
https://github.com/code-423n4/2022-01-openleverage/blob/main/openleverage-contracts/contracts/lib/TransferHelper.sol#L49
Tools Used
Code Review
Recommended Mitigation Steps
Consider to enable functions and use safeIncreaseAllowance and safeDecreaseAllowance instead of safeApprove.
The text was updated successfully, but these errors were encountered: