Skip to content

chore: update undelegate/redelegate checks for 0 deposit shares#1189

Merged
ypatil12 merged 1 commit intotest/slashing-integration-testingfrom
yash/update-undelegate-assertions
Feb 28, 2025
Merged

chore: update undelegate/redelegate checks for 0 deposit shares#1189
ypatil12 merged 1 commit intotest/slashing-integration-testingfrom
yash/update-undelegate-assertions

Conversation

@ypatil12
Copy link
Copy Markdown
Contributor

Motivation:

On undelegation, deposit shares should be zero, there is no need to check the diff.

Modifications:

Added assert_RemovedAll_Staker_DepositShares and updated assert_Snap_RemovedAll_Staker_WithdrawableShares to be non-snap.

Result:

Stricter undelegate/redelegate invariants

@ypatil12 ypatil12 requested a review from eigenmikem February 28, 2025 05:01
Copy link
Copy Markdown
Collaborator

@eigenmikem eigenmikem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ypatil12 ypatil12 merged commit 1387c47 into test/slashing-integration-testing Feb 28, 2025
10 checks passed
@ypatil12 ypatil12 deleted the yash/update-undelegate-assertions branch February 28, 2025 15:09
ypatil12 added a commit that referenced this pull request Mar 5, 2025
**Motivation:**

On undelegation, deposit shares should be zero, there is no need to
check the diff.

**Modifications:**

Added `assert_RemovedAll_Staker_DepositShares` and updated
`assert_Snap_RemovedAll_Staker_WithdrawableShares` to be non-snap.

**Result:**

Stricter undelegate/redelegate invariants
ypatil12 added a commit that referenced this pull request Mar 5, 2025
**Motivation:**

On undelegation, deposit shares should be zero, there is no need to
check the diff.

**Modifications:**

Added `assert_RemovedAll_Staker_DepositShares` and updated
`assert_Snap_RemovedAll_Staker_WithdrawableShares` to be non-snap.

**Result:**

Stricter undelegate/redelegate invariants
ypatil12 added a commit that referenced this pull request Mar 5, 2025
**Motivation:**

Slashing Integration Testing for Competition Audit

**Modifications:**

***General State Validation***
- #1204
- #1198
- #1169
- #1158

***Upgrade Tests***
- #1187
- #1171
- #1143

***Dual Slash Tests***
- #1195
- #1153

***Rounding Tests***
- #1178

***EigenPod Tests***
- #1191
- #1188
- #1203
- #1194
- #1163

***Invariants***
- #1201
- #1176
- #1192
- #1197
- #1175
- #1189
- #1150
- #1149

**Result:**

Comprehensive Test Coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants