Closed code423n4 closed 2 years ago
1.
It is best practice and also unnecessary to initialize variables in for loops as they get set to 0 by default in:
Contract: PolicyManager.sol
line 77
Recommendation:
for (uint256 i; i < length; i++) {
Contract: EIP712.sol
for (uint256 i; i < fees.length; i++) {
Contract: BlurExchange.sol
line 199 line 476
for (uint8 i; i < orders.length; i++) { for (uint8 i; i < fees.length; i++) {
Contract: MerkleVerifier.sol
line 38
for (uint256 i; i < proof.length; i++) {
2.
It is best practice and also unnecessary to initialize variables as they get set to 0 by default.
line 475
uint256 totalFee;
3.
Grammer issues in comments in:
Contract: ERC1967Proxy.sol
line 19 “initializating” should be “initializing”
Contract: ExecutionDelegate.sol
line 51 & 59 the hyphen in “on-behalf” is unnecessary and should be “on behalf”
line 387 "musted" should be "had to" line 484 consider rephrasing to “ /* Amount that seller will receive. */ “ for better clarity
Closing as low quality, please improve formatting and grammar. Also send more findings
1.
It is best practice and also unnecessary to initialize variables in for loops as they get set to 0 by default in:
Contract: PolicyManager.sol
Recommendation:
Contract: EIP712.sol
Recommendation:
Contract: BlurExchange.sol
Recommendation:
Contract: MerkleVerifier.sol
Recommendation:
2.
It is best practice and also unnecessary to initialize variables as they get set to 0 by default.
Contract: BlurExchange.sol
Recommendation:
3.
Grammer issues in comments in:
Contract: ERC1967Proxy.sol
Contract: ExecutionDelegate.sol
Contract: BlurExchange.sol