Omniscia Alliance Block Audit
WrappedToken Code Style Findings
WrappedToken Code Style Findings
WTN-01C: Improper Import
Type | Severity | Location |
---|---|---|
Code Style | Informational | WrappedToken.sol:L5 |
Description:
The import
utilized by the WrappedToken
is the Pausable
implementation rather than the ERC20Pausable
implementation which can be imported as "@openzeppelin/contracts/utils/Pausable.sol"
.
Example:
contracts/WrappedToken.sol
1//SPDX-License-Identifier: Unlicense2pragma solidity ^0.7.6;3
4import "@openzeppelin/contracts/access/Ownable.sol";5import "@openzeppelin/contracts/token/ERC20/ERC20Pausable.sol";6import "./ERC20Permit.sol";7
8contract WrappedToken is ERC20Permit, Pausable, Ownable {
Recommendation:
We advise it to be done so to ensure imports are concise.
Alleviation:
The Pausable
implementation was directly imported to the codebase as requested.