Omniscia Platypus Finance Audit

Timelock Code Style Findings

Timelock Code Style Findings

TIM-01C: Redundant Usage of SafeMath

TypeSeverityLocation
Gas OptimizationInformationalTimelock.sol:L4, L7, L93, L131

Description:

The SafeMath library is no longer necessary in any Solidity version beyond 0.8.X as they all support built-in safe arithmetics.

Example:

contracts/Timelock.sol
92require(
93 eta >= getBlockTimestamp().add(delay),
94 'Timelock::queueTransaction: Estimated execution block must satisfy delay.'
95);

Recommendation:

We advise its usage to be omitted to significantly reduce the gas cost of the contract.

Alleviation:

The Platypus team considered this exhibit but opted not to apply a remediation for it.