Omniscia Parabola Finance Audit

ParaSwap Code Style Findings

ParaSwap Code Style Findings

PSP-01C: Redundant Default Value Initialization

TypeSeverityLocation
Gas OptimizationInformationalParaSwap.sol:L185, L186

Description:

The linked statements assign the default value of 0 during a constructor execution.

Example:

contracts/ParaSwap.sol
185swapStorage.initialATime = 0;
186swapStorage.futureATime = 0;

Recommendation:

We advise them to be omitted as that is the default value the variables being assigned to will hold when uninitialized.

Alleviation:

The Parabola team opted not to apply a remediation for this finding in the current iteration of the codebase.