The Standard

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

Usage of SafeERC20 in upgradeable contracts

Summary

SmartVaultManagerV5.sol utilizes OpenZeppelin's ERC721Upgradeable.sol, OwnableUpgradeable.sol, and Initializable.sol contracts but lacks an upgradeable version of SafeERC20.sol within the file.

Vulnerability Details

The absence of an upgradeable version of SafeERC20.sol in SmartVaultManagerV5 contract with the other upgradeable contracts used. This might potentially lead to risks associated with non-upgradeable SafeERC20 implementations.

Impact

Lines of code:

import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
import "@openzeppelin/contracts-upgradeable/token/ERC721/ERC721Upgradeable.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
contract SmartVaultManagerV5 is ISmartVaultManager, ISmartVaultManagerV2, Initializable, ERC721Upgradeable, OwnableUpgradeable {
using SafeERC20 for IERC20;
}

Tools Used

Manual Analysis

Recommendations

Make use of Open Zeppelins upgradeable version of the SafeERC20.sol contract.

Updates

Lead Judging Commences

hrishibhat Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Known issue
Assigned finding tags:

informational/invalid

Support

FAQs

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

Give us feedback!