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

Native staking changes #2024

Merged
merged 2 commits into from Apr 23, 2024
Merged

Conversation

naddison36
Copy link
Collaborator

@naddison36 naddison36 commented Apr 23, 2024

Contract Changes

  • Native Staking Strategy now holds consensus rewards as ETH. All WETH is now from deposits.
  • FeeAccumulator now holds execution rewards as ETH
  • Removed WETH immutable from FeeAccumulator
  • Converted custom errors back to require with string
  • collectRewardTokens now converts ETH to WETH at harvest
  • checkBalance is now validators * 32 plus WETH balance from deposits
  • Renamed beaconChainRewardsWETH to consensusRewards
  • Fixed bug in stakeETH that was converting all WETH to ETH

Accounting for ETH rewards and withdrawals

oethProcesses

FeeAccumulator now holds execution rewards as ETH
Removed WETH immutable from FeeAccumulator
Converted custom errors back to require with string
collect rewards now converts ETH to WETH at harvest
checkBalance is now validators * 32 plus WETH balance from deposits
Renamed beaconChainRewardsWETH to consensusRewards
Fixed bug in stakeETH that was converting all WETH to ETH
Copy link

Warnings
⚠️ 👀 This PR needs at least 2 reviewers

Generated by 🚫 dangerJS against 30cd240

Copy link
Member

@sparrowDom sparrowDom left a comment

Choose a reason for hiding this comment

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

good changes and simplifications thanks LGTM

@sparrowDom sparrowDom merged commit 8a64dc8 into sparrowDom/nativeStaking Apr 23, 2024
9 of 15 checks passed
@sparrowDom sparrowDom deleted the nicka/nativeStaking branch April 23, 2024 13:02
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.

None yet

2 participants