code-423n4 / 2021-12-defiprotocol-findings

0 stars 0 forks source link

Unused imports #91

Open code423n4 opened 2 years ago

code423n4 commented 2 years ago

Handle

WatchPug

Vulnerability details

The following source units are imported but not referenced in the contract:

https://github.com/code-423n4/2021-12-defiprotocol/blob/205d3766044171e325df6a8bf2e79b37856eece1/contracts/contracts/Auction.sol#L8-L8

import "hardhat/console.sol";

https://github.com/code-423n4/2021-12-defiprotocol/blob/205d3766044171e325df6a8bf2e79b37856eece1/contracts/contracts/Basket.sol#L11-L11

import "hardhat/console.sol";

https://github.com/code-423n4/2021-12-defiprotocol/blob/205d3766044171e325df6a8bf2e79b37856eece1/contracts/contracts/Factory.sol#L3-L3

import "hardhat/console.sol";

Recommendation

Check all imports and remove all unused/unreferenced and unnecessary imports.