Omniscia Native Audit
PoolDeployer Code Style Findings
PoolDeployer Code Style Findings
PDR-01C: Redundant Parenthesis Statement
Type | Severity | Location |
---|---|---|
Code Style | PoolDeployer.sol:L19-L28 |
Description:
The referenced statement is wrapped in parenthesis (()
) redundantly as it does not affect the order of operations.
Example:
contracts/libraries/PoolDeployer.sol
19pool = (new Pool(20 treasuryAddress,21 poolOwnerAddress,22 signerAddress,23 pricingModelRegistry,24 fees,25 tokenAs,26 tokenBs,27 pricingModelIds28));
Recommendation:
We advise the parenthesis to be safely omitted, optimizing the legibility of the codebase.
Alleviation:
The redundant parenthesis have been removed from the referenced statement.