Closed code423n4 closed 2 years ago
WatchPug
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";
Check all imports and remove all unused/unreferenced and unnecessary imports.
Duplicate #2
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
https://github.com/code-423n4/2021-12-yetifinance/blob/5f5bf61209b722ba568623d8446111b1ea5cb61c/packages/contracts/contracts/TroveManagerLiquidations.sol#L7-L7
Recommendation
Check all imports and remove all unused/unreferenced and unnecessary imports.