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

fix: operator split activation delay lock #947

Merged
merged 2 commits into from
Dec 12, 2024
Merged

Conversation

0xrajath
Copy link
Contributor

@0xrajath 0xrajath commented Dec 12, 2024

Adding a lock on the activation delay for operator splits to ensure that an operator's existing split has to activate before that operator can set the split again.

@0xrajath 0xrajath self-assigned this Dec 12, 2024
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.

LGTM, just one minor clarification

src/contracts/core/RewardsCoordinator.sol Outdated Show resolved Hide resolved
@0xrajath 0xrajath merged commit a91564f into dev Dec 12, 2024
16 of 18 checks passed
@0xrajath 0xrajath deleted the rajath/rewards-v2-split-lock branch December 12, 2024 02:47
seanmcgary added a commit to Layr-Labs/sidecar that referenced this pull request Dec 18, 2024
# Motivation
Fixing the audit recommendations in
https://docs.google.com/document/d/1b7kw5UWkfLYE-aOW6n6-jq_tazwR06LRZRlFV3AUCfg/edit?tab=t.0

# Modifications
1. Proper end time calculation for split snapshots
2. Remove overlapping split edge case (Fixed in the core protocol in
Layr-Labs/eigenlayer-contracts#947)

# Result
Rewards v2 Test Case passing:

<img width="647" alt="Screenshot 2024-12-17 at 8 08 21 PM"
src="https://github.com/user-attachments/assets/958e0512-39fe-4b2f-ad9e-afdcb76c4079"
/>
seanmcgary added a commit to Layr-Labs/sidecar that referenced this pull request Dec 20, 2024
# Motivation
Fixing the audit recommendations in
https://docs.google.com/document/d/1b7kw5UWkfLYE-aOW6n6-jq_tazwR06LRZRlFV3AUCfg/edit?tab=t.0

# Modifications
1. Proper end time calculation for split snapshots
2. Remove overlapping split edge case (Fixed in the core protocol in
Layr-Labs/eigenlayer-contracts#947)

# Result
Rewards v2 Test Case passing:

<img width="647" alt="Screenshot 2024-12-17 at 8 08 21 PM"
src="https://github.com/user-attachments/assets/958e0512-39fe-4b2f-ad9e-afdcb76c4079"
/>
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