Gas Optimizations #7
Labels
bug
Something isn't working
G (Gas Optimization)
invalid
This doesn't seem right
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
Change to a modified solidity pragma, instead of hardcoded to 0.8.13, e.g.
^0.8.0
1a) https://github.com/code-423n4/2022-10-blur/blob/2fdaa6e13b544c8c11d1c022a575f16c3a72e3bf/contracts/PolicyManager.sol#L2
Change to a modified solidity pragma, instead of hardcoded to 0.8.13, e.g.
^0.8.0
1b) https://github.com/code-423n4/2022-10-blur/blob/2fdaa6e13b544c8c11d1c022a575f16c3a72e3bf/contracts/lib/ERC1967Proxy.sol#L3
Change to a modified solidity pragma, instead of hardcoded to 0.8.13, e.g.
^0.8.0
1c) https://github.com/code-423n4/2022-10-blur/blob/2fdaa6e13b544c8c11d1c022a575f16c3a72e3bf/contracts/matchingPolicies/StandardPolicyERC1155.sol#L2
Change to a modified solidity pragma, instead of hardcoded to 0.8.13, e.g.
^0.8.0
1d) https://github.com/code-423n4/2022-10-blur/blob/2fdaa6e13b544c8c11d1c022a575f16c3a72e3bf/contracts/matchingPolicies/StandardPolicyERC721.sol#L2
Change to a modified solidity pragma, instead of hardcoded to 0.8.13, e.g.
^0.8.0
1e) https://github.com/code-423n4/2022-10-blur/blob/2fdaa6e13b544c8c11d1c022a575f16c3a72e3bf/contracts/ExecutionDelegate.sol#L2
Change to a modified solidity pragma, instead of hardcoded to 0.8.13, e.g.
^0.8.0
1f) https://github.com/code-423n4/2022-10-blur/blob/2fdaa6e13b544c8c11d1c022a575f16c3a72e3bf/contracts/lib/EIP712.sol#L2
Change to a modified solidity pragma, instead of hardcoded to 0.8.13, e.g.
^0.8.0
1g) https://github.com/code-423n4/2022-10-blur/blob/2fdaa6e13b544c8c11d1c022a575f16c3a72e3bf/contracts/BlurExchange.sol#L2
Change to a modified solidity pragma, instead of hardcoded to 0.8.13, e.g.
^0.8.0
1h) https://github.com/code-423n4/2022-10-blur/blob/2fdaa6e13b544c8c11d1c022a575f16c3a72e3bf/contracts/lib/MerkleVerifier.sol#L2
Change to a modified solidity pragma, instead of hardcoded to 0.8.13, e.g.
^0.8.0
1i) https://github.com/code-423n4/2022-10-blur/blob/2fdaa6e13b544c8c11d1c022a575f16c3a72e3bf/contracts/lib/OrderStructs.sol#L2
Change to a modified solidity pragma, instead of hardcoded to 0.8.13, e.g.
^0.8.0
https://github.com/code-423n4/2022-10-blur/blob/2fdaa6e13b544c8c11d1c022a575f16c3a72e3bf/contracts/lib/ReentrancyGuarded.sol#L10
boolean
values use more gas thanuint's
so useuint256's
instead ofboolean
values to depicttrue
andfalse
states. This will save gas in the long run as the Change to a modified solidity pragma, instead of hardcoded to 0.8.13, e.g.^0.8.0
is ran more.https://github.com/code-423n4/2022-10-blur/blob/2fdaa6e13b544c8c11d1c022a575f16c3a72e3bf/contracts/PolicyManager.sol#L77
use
++i
instead ofi++
to save gas3a) https://github.com/code-423n4/2022-10-blur/blob/2fdaa6e13b544c8c11d1c022a575f16c3a72e3bf/contracts/lib/EIP712.sol#L77
use
++i
instead ofi++
to save gas3b) https://github.com/code-423n4/2022-10-blur/blob/2fdaa6e13b544c8c11d1c022a575f16c3a72e3bf/contracts/BlurExchange.sol#L199
use
++i
instead ofi++
to save gas3c) https://github.com/code-423n4/2022-10-blur/blob/2fdaa6e13b544c8c11d1c022a575f16c3a72e3bf/contracts/lib/MerkleVerifier.sol#L38
use
++i
instead ofi++
to save gaschange
public
toexternal
to save gasThe text was updated successfully, but these errors were encountered: