Skip to content

test: slashing invariants#1150

Merged
eigenmikem merged 16 commits intotest/slashing-integration-testingfrom
mike/slashing-invariants
Feb 25, 2025
Merged

test: slashing invariants#1150
eigenmikem merged 16 commits intotest/slashing-integration-testingfrom
mike/slashing-invariants

Conversation

@eigenmikem
Copy link
Copy Markdown
Collaborator

@eigenmikem eigenmikem commented Feb 20, 2025

Motivation:

Implement new slashing invariants and add existing ones to checks.

Modifications:

  • Explicit calculation of expected withdrawable shares and dsf after delegation and on completion of full withdrawal
  • Add "unchanged dsf" assertion
  • Add increased/decreased minSlashableStake assertions
  • Overload minSlashableStake assertions to handle address input
  • Add assertions to slashing flow state checks
  • Fix _choose helper function

Result:

More complete coverage for slashing invariants

@ypatil12 ypatil12 added 🗡️ Slashing Release Changes for the slashing release. 🧪 Test Test-related changes (unit, integration, etc.). labels Feb 20, 2025
Copy link
Copy Markdown
Contributor

@ypatil12 ypatil12 left a comment

Choose a reason for hiding this comment

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

LGTM, seems like just the slashable shares in queue remaining?

@eigenmikem eigenmikem merged commit 0c55600 into test/slashing-integration-testing Feb 25, 2025
10 checks passed
@eigenmikem eigenmikem deleted the mike/slashing-invariants branch February 25, 2025 15:59
ypatil12 pushed a commit that referenced this pull request Feb 27, 2025
**Motivation:**

Implement new slashing invariants and add existing ones to checks.

**Modifications:**

- Explicit calculation of expected withdrawable shares and dsf after
delegation and on completion of full withdrawal
- Add "unchanged dsf" assertion
- Add increased/decreased minSlashableStake assertions
- Overload minSlashableStake assertions to handle address input
- Add assertions to slashing flow state checks
- Fix `_choose` helper function

**Result:**

More complete coverage for slashing invariants

---------

Co-authored-by: Michael <michael@Michaels-MacBook-Pro.local>
ypatil12 pushed a commit that referenced this pull request Feb 27, 2025
**Motivation:**

Implement new slashing invariants and add existing ones to checks.

**Modifications:**

- Explicit calculation of expected withdrawable shares and dsf after
delegation and on completion of full withdrawal
- Add "unchanged dsf" assertion
- Add increased/decreased minSlashableStake assertions
- Overload minSlashableStake assertions to handle address input
- Add assertions to slashing flow state checks
- Fix `_choose` helper function

**Result:**

More complete coverage for slashing invariants

---------

Co-authored-by: Michael <michael@Michaels-MacBook-Pro.local>
ypatil12 pushed a commit that referenced this pull request Feb 27, 2025
**Motivation:**

Implement new slashing invariants and add existing ones to checks.

**Modifications:**

- Explicit calculation of expected withdrawable shares and dsf after
delegation and on completion of full withdrawal
- Add "unchanged dsf" assertion
- Add increased/decreased minSlashableStake assertions
- Overload minSlashableStake assertions to handle address input
- Add assertions to slashing flow state checks
- Fix `_choose` helper function

**Result:**

More complete coverage for slashing invariants

---------

Co-authored-by: Michael <michael@Michaels-MacBook-Pro.local>
ypatil12 pushed a commit that referenced this pull request Mar 5, 2025
**Motivation:**

Implement new slashing invariants and add existing ones to checks.

**Modifications:**

- Explicit calculation of expected withdrawable shares and dsf after
delegation and on completion of full withdrawal
- Add "unchanged dsf" assertion
- Add increased/decreased minSlashableStake assertions
- Overload minSlashableStake assertions to handle address input
- Add assertions to slashing flow state checks
- Fix `_choose` helper function

**Result:**

More complete coverage for slashing invariants

---------

Co-authored-by: Michael <michael@Michaels-MacBook-Pro.local>
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

🗡️ Slashing Release Changes for the slashing release. 🧪 Test Test-related changes (unit, integration, etc.).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants