Open code423n4 opened 1 year ago
0xSorryNotSorry marked the issue as primary issue
We believe this is an informational-level issue. We failed to update this statement in the higher-level documentation. The code is correct.
Sidu28 marked the issue as sponsor disputed
Sidu28 marked the issue as disagree with severity
GalloDaSballo changed the severity to QA (Quality Assurance)
Great catch, but in lack of an impact am downgrading to QA
Will award extra points
L + 3
GalloDaSballo marked the issue as grade-a
Lines of code
https://github.com/code-423n4/2023-04-eigenlayer/blob/398cc428541b91948f717482ec973583c9e76232/src/contracts/pods/EigenPod.sol#L354
Vulnerability details
Impact
Detailed description of the impact of this finding. The condition for full withdrawals in the code is different from that in the documentation.
Proof of Concept
Provide direct links to all referenced code in GitHub. Add screenshots, logs, or any other relevant proof that illustrates the concept. The condition in docs for full withdrawal is
validator.withdrawableEpoch < executionPayload.slot/SLOTS_PER_EPOCH
while in the code itsvalidator.withdrawableEpoch <= executionPayload.slot/SLOTS_PER_EPOCH
src/contracts/pods/EigenPod.sol#L354
Tools Used
Recommended Mitigation Steps
Synchronize them with each other.