Closed code423n4 closed 2 years ago
Dravee
Public functions that are never called by the contract should be declared external to save gas.
This function is never called by the contract : https://github.com/code-423n4/2021-12-vader/blob/main/contracts/dex-v2/pool/VaderPoolV2.sol#L63-L103
VS Code
Change function visibility from public to external
public
external
Dup #175
Handle
Dravee
Vulnerability details
Impact
Public functions that are never called by the contract should be declared external to save gas.
Proof of Concept
This function is never called by the contract : https://github.com/code-423n4/2021-12-vader/blob/main/contracts/dex-v2/pool/VaderPoolV2.sol#L63-L103
Tools Used
VS Code
Recommended Mitigation Steps
Change function visibility from
public
toexternal