You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Last Updated**: After Security Fixes Implementation - **VERIFIED WITH SLITHER**
7
+
8
+
---
9
+
10
+
NOTE: I would fix this errors but due to time constraints I leave them unresolved, critical errors are ones that contain external calls in loops, but they're carried out with trusted contracts as a consensus contract or staking. We could apply fixes limiting max number of validators for DOS.
|**External Calls in Loop**|`PoSConsensus`| Multiple calls: `getValidatorStake`, `slashValidator`, `distributeRewards`|**Gas DoS Attack**|[Lines 554, 557, 591](src/consensus/PoSConsensus.sol#L554)|
31
+
|**External Calls in Loop**|`StakingManager`|`getValidatorStake()` called in loop during top validator selection |**Gas DoS Attack**|[Line 258](src/staking/StakingManager.sol#L258)|
|**High Cyclomatic Complexity**|`PoSConsensus`| Function `onDisputeResolved()` complexity = 13 |**Maintainability**|[Line 538](src/consensus/PoSConsensus.sol#L538)|
49
+
|**Dead Code**|`ValidatorLogic`| Function `setValidatorPosition()` never used |**Code Quality**|[Line 161](src/staking/ValidatorLogic.sol#L161)|
50
+
|**Assembly Usage**|`DisputeManager`| Uses assembly in `_recoverSigner()`|**Audit Complexity**|[Lines 471-475](src/consensus/DisputeManager.sol#L471)|
51
+
|**Assembly Usage**|`PoSConsensus`| Uses assembly in `_recoverSigner()`|**Audit Complexity**|[Lines 361-365](src/consensus/PoSConsensus.sol#L361)|
52
+
|**Assembly Usage**|`StakingManager`| Uses assembly for CREATE2 operations |**Audit Complexity**|[Lines 113-118](src/staking/StakingManager.sol#L113)|
53
+
|**Naming Conventions**| Multiple | Parameter naming not following mixedCase |**Code Quality**| Various locations |
54
+
|**Too Many Digits**|`StakingManager`| Long hex literals in bytecode operations |**Readability**|[Lines 112, 275](src/staking/StakingManager.sol#L112)|
0 commit comments