The Standard

The Standard
DeFiHardhat
20,000 USDC
View results
Submission Details
Severity: low
Invalid

`safeApprove()` function has been depreciated

Summary

safeApprove() has been deprecated and the official OpenZeppelin documentation recommends using safeIncreaseAllowance() & safeDecreaseAllowance().

IERC20(_params.tokenIn).safeApprove(ISmartVaultManagerV3(manager).swapRouter2(), _params.amountIn);

Tools Used

manual review

Recommendations

Consider replacing deprecated functions of OpenZeppelin contracts.

Updates

Lead Judging Commences

hrishibhat Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Known issue
Assigned finding tags:

allowance

informational/invalid

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.