Omniscia Tren Finance Audit

LockedTREN Static Analysis Findings

LockedTREN Static Analysis Findings

LTR-01S: Redundant Variable Assignment

Description:

The linked variable is assigned to redundantly to the default value of the relevant data type (i.e. uint256 assigned to 0, address assigned to address(0) etc.).

Example:

contracts/TREN/LockedTREN.sol
122claimable = 0;

Recommendation:

We advise the assignment to be safely omitted optimizing the codebase.

Alleviation (f6f1ad0b8f):

The redundant assignment has been omitted, however, the code still contains a no-op statement with the claimable variable which should be removed.

Alleviation (73b9546eb9):

The no-op statement has been properly removed rendering the exhibit fully addressed.