Omniscia KlimaDAO Audit

KlimaLPStaking Static Analysis Findings

KlimaLPStaking Static Analysis Findings

KLP-01S: Redundant Statement

TypeSeverityLocation
Gas OptimizationInformationalKlimaLPStaking.sol:L626

Description:

The linked statement is ineffectual.

Example:

contracts/staking/regular/KlimaLPStaking.sol
620constructor(address _LPToken, address _KLIMAToken, address _rewardPool, uint256 _rewardPerBlock, uint _blocksToWait) {
621 LPToken = IERC20(_LPToken);
622 KLIMAToken = IERC20(_KLIMAToken);
623 rewardPool = _rewardPool;
624 lastRewardBlock = block.number.add( _blocksToWait );
625 rewardPerBlock = _rewardPerBlock;
626 accKLIMAPerShare;
627 owner = msg.sender;
628}

Recommendation:

We advise it to be omitted from the codebase.

Alleviation:

The KlimaDAO team considered this exhibit but opted to retain the codebase in its current state.