Skip to content

feat: add harvest grace period to prevent reward behavior front-running#27

Open
fgimenez wants to merge 1 commit into
mainfrom
fgimenez/m10-harvest-frontrun
Open

feat: add harvest grace period to prevent reward behavior front-running#27
fgimenez wants to merge 1 commit into
mainfrom
fgimenez/m10-harvest-frontrun

Conversation

@fgimenez
Copy link
Copy Markdown
Contributor

Closes: https://app.asana.com/1/1201208859446629/project/1213822431665320/task/1213823326175966

Adds a configurable grace period (default 1 minute, max 10 minutes) after setMyRewardBehavior() during which permissionless harvestRewards() is blocked. User-initiated claimRewards() remains unaffected. Batch harvestAllRewards() skips operators in the grace window without reverting. Owner can tune or disable (set to 0) via setHarvestGracePeriod().

Requires redeploying NodeOperatorFactory only, existing NodeOperator contracts can be migrated via migrateOperator().

@fgimenez fgimenez requested a review from jcabrero April 24, 2026 08:18
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.

1 participant