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

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from
Open

feat: Rewards v2 #315

wants to merge 5 commits into from

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

TODO

  1. Pull latest eigenlayer-contracts upstream changes and update Mock accordingly.
  2. Test Cases.

Result

Rewards v2 release.

@@ -4,7 +4,7 @@
[submodule "lib/eigenlayer-contracts"]
path = lib/eigenlayer-contracts
url = https://github.com/Layr-labs/eigenlayer-contracts
branch = dev
branch = feat/rewards-v2
Copy link
Author

Choose a reason for hiding this comment

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

This will be changed and git submodule updated once the upstream changes in eigenlayer-contracts are merged to dev. Tracking in Layr-Labs/eigenlayer-contracts#837

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