Use safeIncreaseAllowance() Instead of Deprecated safeApprove() #85
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
Meta0xNull
Vulnerability details
Impact
safeApprove() is Deprecated because has issues similar to the ones found in {IERC20-approve}, and its usage is discouraged.
Read More: SafeERC20.safeApprove() Has unnecessary and unsecure added behavior
OpenZeppelin/openzeppelin-contracts#2219
Proof of Concept
https://github.com/code-423n4/2021-12-defiprotocol/blob/main/contracts/contracts/Basket.sol#L276-L277
https://github.com/code-423n4/2021-12-defiprotocol/blob/main/contracts/contracts/Factory.sol#L112
Tools Used
Manual Review
Recommended Mitigation Steps
Use safeIncreaseAllowance() Instead of Deprecated safeApprove().
The text was updated successfully, but these errors were encountered: