Skip to content

Conversation

@0xfornax
Copy link
Member

Distribution code was considering just the smoothing pool balance being distributed and ignoring the pending voter share from megapools.

r.log.Printlnf("WARNING: Total attestation score = %s, successful attestations = %d... sending the whole smoothing pool balance to the pool stakers.", r.totalAttestationScore.String(), r.successfulAttestations)
poolStakerEth := big.NewInt(0).Set(r.smoothingPoolBalance)
poolStakerEth.Sub(poolStakerEth, trueVoterEth)
poolStakerEth.Sub(poolStakerEth, voterEthFromSmoothingPool)
Copy link
Member

Choose a reason for hiding this comment

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

This uses a different calculation to the poolStakerETH calculation further down. Here it doesn't add pending voter share and then remove trueVoterETH. I don't think this is correct in the case where there is 0 megapoolVoteEligibleRpl.

Further down it would mean that voter share goes to rETH if there is no eligible RPL but here the voter share would not get distributed, I think.

Copy link
Member Author

Choose a reason for hiding this comment

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

There is a commit after Patches comment that changed trueVoterEth to voterEthFromSmoothingPool.

@0xfornax 0xfornax force-pushed the fix-pending-voter-share-calculations branch 3 times, most recently from 20315f4 to e498cb5 Compare January 21, 2026 03:47
@0xfornax 0xfornax force-pushed the fix-pending-voter-share-calculations branch from e498cb5 to 20e2a2f Compare January 21, 2026 18:22
Copy link
Contributor

@jshufro jshufro left a comment

Choose a reason for hiding this comment

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

nothing but small comments! you just pushed a commit, though, so hold on while i refresh

@0xfornax 0xfornax merged commit f32c2c3 into devnet6 Jan 21, 2026
5 checks passed
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