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

feat: add OperatorSharesSlashed event to track shares slashed per operator #1051

Open
wants to merge 1 commit into
base: slashing-magnitudes-fixes
Choose a base branch
from

Conversation

bowenli86
Copy link
Member

add OperatorSharesSlashed event to track shares slashed per operator

Copy link
Collaborator

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

Clarification

@@ -307,6 +307,9 @@ contract DelegationManager is
sharesToDecrease: operatorSharesSlashed
});

// Emit event for operator shares being slashed
emit OperatorSharesSlashed(operator, strategy, totalDepositSharesToBurn);
Copy link
Collaborator

Choose a reason for hiding this comment

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

To confirm, you are trying to get what was slashed of the operator that was also in the queue? In this case, the OperatorSharesDecreased event will not map 1:1 with the OperatorSharesSlashed event in terms of magnitude of burned shares (since some could have been in the queue).

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, that'll have more meanings so we are not simply having value-duplicated events

@bowenli86 bowenli86 requested a review from ypatil12 January 27, 2025 19:12
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