|
Ran
|
Jobs
1
|
Files
42
|
Run time
30min
|
Badge
README BADGES
|
push
github
[Certora Audit] G-01. `OwnerManager.removeOwner()`: 1 SLOAD can be saved in the normal path (#888) This pull request includes a small but important change to the `removeOwner` function in the `OwnerManager` contract. The change optimizes the decrement operation for the `ownerCount` variable. The previous code reads from storage twice with the `ownerCount` variable. By doing pre-decrement (which is cheaper than post-decrement), we can save on 1 SLOAD. Optimization: * [`contracts/base/OwnerManager.sol`](diffhunk://#diff-795fb06769401bfbcb82d6bc9fdebab82L74-L80): Modified the `removeOwner` function to use pre-decrement for `ownerCount` to improve efficiency and ensure the threshold check is performed correctly.
324 of 366 branches covered (88.52%)
Branch coverage included in aggregate %.
1 of 1 new or added line in 1 file covered. (100.0%)
494 of 506 relevant lines covered (97.63%)
101.35 hits per line
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | run-$ - 12694057899.1 | 0 |
93.81 |
GitHub Action Run |