-
Notifications
You must be signed in to change notification settings - Fork 465
feat: gauge weighted incentives and opt-in rewards fee #1704
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
Open
0xClandestine
wants to merge
9
commits into
main
Choose a base branch
from
release-dev/incentive-council
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
**Motivation:** We need to support Rewards v2.2 : - Rewards that are linear to allocated unique stake (Needs to be both retroactive and future-looking). - Rewards that are linear to total stake (Needs to be both retroactive and future-looking). TDD: https://www.notion.so/eigen-labs/PRD-Rewards-v2-2-Operator-Set-Rewards-with-Unique-Total-Stake-28513c11c3e080cbb856e41ddc6362f5 **Modifications:** Updates in `RewardsCoordinator`: - New `createUniqueStakeRewardsSubmission` function with `UniqueStakeRewardsSubmissionCreated` event emission - New `PAUSED_UNIQUE_STAKE_REWARDS_SUBMISSION` constant - New `isUniqueStakeRewardsSubmissionHash` mapping - New `createTotalStakeRewardsSubmission` function with `TotalStakeRewardsSubmissionCreated` event emission - New `PAUSED_TOTAL_STAKE_REWARDS_SUBMISSION` constant - New `isTotalStakeRewardsSubmissionHash` mapping - Updated storage gap to 33 slots (from 35 slots) Updated Bindings **Result:** Support for Rewards v2.2
**Motivation:** We need approval on initial design of the upcoming incentives council feature release. Historically, we've used [EigenHopper](https://github.com/Layr-Labs/EigenHopper/tree/master) for token emissions. Now we're looking to make some improvements. **Modifications:** - Drafted a consolidated interface that combines the two `EigenHopper` contracts into a single new contract. **Result:** Single consolidated interface with hopper functionality and proposed ELIP-012 functionality.
**Motivation:** We need to implement the ELIP-012 proposed implementation. **Modifications:** - Adds new `EmissionsController`. **Result:** New contract with owner who sets incentive council, an address privileged with configuring EIGEN emissions.
**Motivation:** We want to add a configurable protocol fee mechanism to the RewardsCoordinator contract to enable revenue generation. This allows reward submitters to opt into paying fees while maintaining backward compatibility with existing integrations. **Modifications:** - Added protocolFee (fixed constant amount) and feeRecipient state variables - Implemented setOptInProtocolFee() for submitters to opt into fee payments - Implemented setFeeRecipient() (owner-only) to set the fee destination address **Result:** Submitters can voluntarily enable protocol fees on their reward distributions. When opted in, the fixed fee amount is deducted and sent to the designated recipient. Existing integrations continue working unchanged since fees are disabled by default.
**Motivation:** This upgrade improves programmatic incentives for the EigenLayer protocol through a new EmissionsController that gives the Incentive Council flexible control over EIGEN token emissions and distribution. It also adds fee functionality to the RewardsCoordinator to support protocol fees. **Modifications:** - Deploy EmissionsController implementation and proxy, plus new RewardsCoordinator implementation with fee support. - Upgrade and initialize EmissionsController proxy. - Upgrade and reinitialize RewardsCoordinator with new feeRecipient parameter. - Register EmissionsController in ProtocolRegistry. - Transfer minting rights from old hopper to EmissionsController. - Complete the upgrade after timelock delay and validate all changes. **Result:** EmissionsController becomes the sole bEIGEN minter, and RewardsCoordinator has opt-in fees. --------- Co-authored-by: Rajath Alex <rajathalex@gmail.com>
**Motivation:** *Explain here the context, and why you're making that change. What is the problem you're trying to solve.* **Modifications:** *Describe the modifications you've done.* **Result:** *After your change, what will change.*
**Motivation:** The `RewardsCoordinator` needs to support a special pathway for EigenDA rewards submissions that can be initiated by the EmissionsController. Currently, all AVS rewards submissions go through the same `createAVSRewardsSubmission` function which doesn't distinguish between different reward submission sources or allow for privileged callers. This creates a need for a dedicated mechanism that allows the EmissionsController to submit EigenDA rewards on behalf of the EigenDA AVS. **Modifications:** - Added `emissionsController` as an immutable storage variable in `RewardsCoordinatorStorage` - Created new `createEigenDARewardsSubmission` function that accepts an AVS address parameter and can only be called by the EmissionsController - Refactored existing `createAVSRewardsSubmission` to use a new internal helper function `_createAVSRewardsSubmission` to avoid code duplication - Updated `EmissionsController` to call `createEigenDARewardsSubmission` instead of `createAVSRewardsSubmission` for EigenDA distribution type **Result:** The `RewardsCoordinator` now has a dedicated pathway for EigenDA rewards submissions from the EmissionsController.
EmissionsController + opt-in RewardsCoordinator fees
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
v1.12.0 Incentive Council (ELIP-012)
Release Manager
@0xClandestine
Overview
Core Features
EmissionsController: Mints EIGEN at a fixed inflation rate per epoch and distributes via gauge weights (bips 0-10,000)
Permissionless Trigger: Anyone can call
pressButton()to process epoch emissions—no trusted keeper required5 Distribution Types:
RewardsForAllEarners— Protocol-wide rewards for all delegated stakeOperatorSetTotalStake— Rewards proportional to total stake in operator setOperatorSetUniqueStake— Rewards proportional to unique stake allocationsEigenDA— Special pathway for EigenDA (pre-OperatorSets AVS)Manual— Off-chain computed distributions sent directly to Incentives CommitteeSilent Failure Handling: Distribution failures don't block other distributions (except reentrancy/OOG attacks)
Protocol Fee Mechanism: Opt-in 20% fee on reward submissions in RewardsCoordinator
setOptInForProtocolFee()Governance & Roles
setIncentiveCouncil()addDistribution(),updateDistribution()sweep()Key Design Points
EMISSIONS_INFLATION_RATEpressButton()andsweep()respectPAUSED_TOKEN_FLOWSflagpressButton()isn't called during an epoch, those emissions are permanently lostChangelog
Scope
New Contracts:
EmissionsController.sol— Main implementationEmissionsControllerStorage.sol— Storage layoutIEmissionsController.sol— InterfaceModified Contracts:
RewardsCoordinator.sol— Added protocol fee mechanism andcreateEigenDARewardsSubmission()RewardsCoordinatorStorage.sol— AddedPROTOCOL_FEE_BIPS,isOptedInForProtocolFee,feeRecipient,emissionsController