Marking variables that do not change as 'immutable' greatly reduces gas costs. Some examples where variables can be marked as immutable:
contract NFTXLPStaking variable rewardDistTokenImpl.
contract NFTXVaultFactoryUpgradeable variable prevContract.
contract NFTXVaultUpgradeable variable vaultId.
Handle
paulius.eth
Vulnerability details
Impact
Marking variables that do not change as 'immutable' greatly reduces gas costs. Some examples where variables can be marked as immutable: contract NFTXLPStaking variable rewardDistTokenImpl. contract NFTXVaultFactoryUpgradeable variable prevContract. contract NFTXVaultUpgradeable variable vaultId.
Recommended Mitigation Steps
Mark such variables as 'immutable'.