Skip to content

feat: add permissioned slashes #1384

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

Closed
wants to merge 10 commits into from
Closed

Conversation

ypatil12
Copy link
Collaborator

Motivation:

TODO

Modifications:

Add functions to add slasher per operatorSet.

Result:

Non-breaking slasher update.

bowenli86 and others added 10 commits May 21, 2025 09:18
**Motivation:**

improve our release management and legibility

**Modifications:**

- add CHANGLOG structure and template
- add prefilled CHANGELOG for upcoming 3 releases
**Motivation:**

Add support for redistributing slashed funds to specified recipients
instead of burning them, while optimizing code size and improving test
coverage.

**Modifications:**

Added a new redistribution system that allows AVSs to specify recipients
for slashed funds. Code optimizations were made to reduce codesize,
including consolidating repeated logic and a small
`PermissionControllerMixin` refactor.

**Result:**

Slashed funds can now be redirected to specified recipients instead of
being burned, with improved code efficiency and test coverage.
**Motivation:**

the _removeDepositShares() returns a bool which is not of any meaning.
simplify removeDepositShares in StrategyManager by removing that
returned value

**Modifications:**

simplify _removeDepositShares() by removing returned extra bool

**Result:**

_removeDepositShares() is simplified and binary size is reduced
**Motivation:**

We want to hold slashed funds in escrow temporarily to maintain protocol
security (prevent malicious actors from draining the contracts).

**Modifications:**

- Add `SlashingWithdrawalRouter`.

**Result:**

The `SlashingWithdrawalRouter` contract is added for managing slashed
funds in the EigenLayer protocol. It provides a mechanism to handle the
burning or redistribution of slashed shares after a delay period,
ensuring proper handling of slashed funds while maintaining protocol
security.

---------

Co-authored-by: Yash Patil <[email protected]>
@bowenli86 bowenli86 force-pushed the release-dev/redistribution branch from a518026 to 58c1bb9 Compare May 22, 2025 17:03
@0xClandestine 0xClandestine force-pushed the release-dev/redistribution branch 2 times, most recently from a7673f1 to da4de65 Compare May 30, 2025 20:36
Base automatically changed from release-dev/redistribution to main May 30, 2025 20:53
@ypatil12 ypatil12 closed this Jun 2, 2025
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.

3 participants