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

Clarifying Rewards Calculation Windows #344

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/developers/rewards.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ The rewards protocol is currently live on testnet. AVSs can make rewards submiss
Rewards MUST come from an AVSs ServiceManager contract. An example integration can be found [here](https://github.com/Layr-Labs/eigenlayer-middleware/blob/v0.2.0-rc2-holesky-preprod-rewards/src/ServiceManagerBase.sol#L76-L104).

Integration Notes:
- The rewards passed on to earners are calculated daily. Rewards take 2 days to populate in the daily calculation. For example, if a reward submission was made on August 3rd, it would show up in the August 5th calculation
- Reward roots are posted weekly on mainnet and daily on testnet
- Reward roots are on a 7 day activation delay (ie. when it is claimable against) on mainnet and 2 hour activation delay on testnet
- Reward roots are posted **weekly** on Mainnet and **daily** on Testnet.
- Reward roots are on a 7 day activation delay (ie. when it is claimable against) on mainnet and 2 hour activation delay on testnet.
- Rewards amounts are calculated within based on activity across a 24 hour windows. Each window's amounts are cumulative and include `day + (day - 1)`. Rewards roots are posted weekly on mainnet based on that day's snapshot date which will correlate to a 24 hour window. Mainnet and Testnet are functionally equivalent in their calculations, however the rewards roots are only posted weekly for mainnet.
- If the AVS does not have any operators opted into the AVS on a day of an active reward, those tokens are not distributed pro-rata to future days.
- Rewards cannot be clawed back by AVSs.
- Operators will only be distributed rewards on **entire** days that they have opted into the AVS.
Expand Down