public
functions that are never called by the contract should be declared external
, and its immutable parameters should be located in calldata
to save gas.
Use the external
attribute for functions never called from the contract, and change the location of immutable parameters to calldata
to save gas.
external-function on Slither's wiki.