Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: slashing invariants #1150

Open
wants to merge 13 commits into
base: test/slashing-integration-testing
Choose a base branch
from

Conversation

eigenmikem
Copy link
Contributor

@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
  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants