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

Harvest Action now collects if there is more than 0.5 execution rewards #2281

Merged
merged 1 commit into from
Oct 20, 2024

Conversation

naddison36
Copy link
Collaborator

Changes

  • The Defender Action that harvests native staking rewards has been updated to collect if there is more than 0.5 ETH of execution rewards. It previously only collected if there was more than 1 ETH of consensus rewards.

Copy link

codecov bot commented Oct 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.13%. Comparing base (db2f3fa) to head (ebe1f90).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2281      +/-   ##
==========================================
- Coverage   53.26%   52.13%   -1.13%     
==========================================
  Files          79       79              
  Lines        4089     4089              
  Branches      820     1074     +254     
==========================================
- Hits         2178     2132      -46     
- Misses       1908     1954      +46     
  Partials        3        3              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +70 to +71
consensusRewards.gt(parseEther("1")) ||
executionRewards.gt(parseEther("0.5"))
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: Could probably use gte but not a big deal

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah, the line has to be drawn somewhere. Those amounts were arbitrary

@naddison36 naddison36 merged commit 7a65810 into master Oct 20, 2024
12 of 18 checks passed
@naddison36 naddison36 deleted the nicka/harvest branch October 20, 2024 07:45
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.

2 participants