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: Rewards v2 #315

Merged
merged 14 commits into from
Nov 15, 2024
Merged

feat: Rewards v2 #315

merged 14 commits into from
Nov 15, 2024

Conversation

0xrajath
Copy link

@0xrajath 0xrajath commented Oct 28, 2024

Motivation

As part of the Rewards v2 release, we need to support the following features in middleware:

  1. Performance-based Rewards submission by AVSs.
  2. Set Claimer incase any funds are refunded to the AVS.

Depends on Layr-Labs/eigenlayer-contracts#837

Modifications

  • Bumped up eigenlayer-contracts dependency to match Rewards v2.
  • Refactoring existing commission terminology to split, and global terminology to default for RewardsCoordinator.
  • ServiceManagerBase, ECDSAServiceManagerBase and IServiceManager :
    • createAVSPerformanceRewardsSubmission function for AVS to submit performance-based rewards.
    • setClaimerFor function for AVS to assign claimer on its behalf incase of funds being refunded to the AVS.
  • Updated RewardsCoordinatorMock in test to implement new functions.
  • Updated Tests

Result

Rewards v2 release.

.gitmodules Outdated Show resolved Hide resolved
@0xrajath 0xrajath marked this pull request as ready for review October 29, 2024 19:26
@0xrajath 0xrajath self-assigned this Oct 29, 2024
@0xrajath 0xrajath added the enhancement New feature or request label Oct 29, 2024
@0x0aa0 0x0aa0 self-requested a review October 29, 2024 20:51
@0xrajath 0xrajath merged commit 1dff320 into dev Nov 15, 2024
3 checks passed
@0xrajath 0xrajath deleted the feat/rewards-v2-functions branch November 15, 2024 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants