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

0 stars 0 forks source link

Unused imports #255

Closed code423n4 closed 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-yetifinance/blob/5f5bf61209b722ba568623d8446111b1ea5cb61c/packages/contracts/contracts/YETI/sYETIToken.sol#L10-L10

import "./BoringCrypto/BoringBatchable.sol";

https://github.com/code-423n4/2021-12-yetifinance/blob/5f5bf61209b722ba568623d8446111b1ea5cb61c/packages/contracts/contracts/TroveManagerLiquidations.sol#L7-L7

import "hardhat/console.sol";

Recommendation

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

kingyetifinance commented 2 years ago

Duplicate #2