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 #153

Merged
merged 104 commits into from
Jan 16, 2025
Merged

feat: rewards v2 #153

merged 104 commits into from
Jan 16, 2025

Conversation

seanmcgary
Copy link
Member

No description provided.

@seanmcgary seanmcgary force-pushed the testnet branch 6 times, most recently from d9bb2ab to b953d06 Compare December 18, 2024 15:01
@seanmcgary seanmcgary changed the title Releases: RewardsV2 mainnet Mainnet Release: RewardsV2 Dec 19, 2024
@seanmcgary seanmcgary force-pushed the testnet branch 3 times, most recently from 2cc8b92 to 4e95448 Compare January 9, 2025 02:42
@seanmcgary seanmcgary changed the title Mainnet Release: RewardsV2 feat: rewards v2 Jan 14, 2025
@seanmcgary seanmcgary force-pushed the testnet branch 2 times, most recently from 294a3cc to a0c05b8 Compare January 14, 2025 17:14
@seanmcgary seanmcgary added this to the v2.0.0 - RewardsV2 milestone Jan 14, 2025
seanmcgary and others added 23 commits January 16, 2025 08:43
# Motivation

As part of the Rewards v2 SigmaPrime audit, we need to tackle the
following issues:

1.  ELSC2-04: Inconsistent Number Formatting In Merkle Tree Values
2. ELSC2-10: Use Of Deprecated Package `xerrors`
3. ELSC2-12: Miscellaneous General Comments (Unused Field `description`)

# Modifications

* Renamed `pkg/rewards/operatorAvsRegistrationSnaphots.go` to
`pkg/rewards/operatorAvsRegistrationSnapshots.go`
* Renamed `pkg/rewards/operatorAvsRegistrationSnaphots_test.go` to
`pkg/rewards/operatorAvsRegistrationSnapshots_test.go`
* Removed use of `xerrors` package.
* Updated `%d` usages to `%016x`.
* Adding `description` field to `OperatorDirectedRewardSubmission`
model.

# Result

Rewards v2 SigmaPrime audit fixes.
# Motivation

As part of the Rewards v2 SigmaPrime audit, we need to tackle the
following issues:

1.  ELSC2-04: Inconsistent Number Formatting In Merkle Tree Values

Specifically for the multiplier and amount fields in the Operator
Directed Rewards Submission Model.

# Modifications

* Handling as `%064x` and `%024x` instead of strings.

# Result
`ELSC2-04` SigmaPrime audit fix.
# Motivation
We need to support the default split dynamically in the Rewards
calculation since it can be set by governance. Currently it is hardcoded
to 10%.
Rewards v2 audit reports
set version to v2.0.0-rc.1
@seanmcgary seanmcgary marked this pull request as ready for review January 16, 2025 21:22
@seanmcgary seanmcgary requested a review from a team as a code owner January 16, 2025 21:22
@seanmcgary seanmcgary requested a review from 0xrajath January 16, 2025 21:22
@seanmcgary seanmcgary merged commit 0e8efe1 into master Jan 16, 2025
9 checks passed
@seanmcgary seanmcgary deleted the testnet branch January 16, 2025 21:23
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.

4 participants