Closed code423n4 closed 2 years ago
cccz
batchLiquidateTroves function in TroveManagerLiquidations.sol contract is never called from within contracts yet are declared public. Its visibility can be made external to save gas.
https://github.com/code-423n4/2021-12-nftx/blob/main/nftx-protocol-v2/contracts/solidity/NFTXStakingZap.sol#L300-L308
Duplicate #9
Duplicate #270
Duplicate of issue by the same warden
Handle
cccz
Vulnerability details
Impact
batchLiquidateTroves function in TroveManagerLiquidations.sol contract is never called from within contracts yet are declared public. Its visibility can be made external to save gas.
Proof of Concept
https://github.com/code-423n4/2021-12-nftx/blob/main/nftx-protocol-v2/contracts/solidity/NFTXStakingZap.sol#L300-L308