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

Make worst-case slashing loss estimate more precise #2

Open
ryanberckmans opened this issue Jan 16, 2022 · 6 comments
Open

Make worst-case slashing loss estimate more precise #2

ryanberckmans opened this issue Jan 16, 2022 · 6 comments

Comments

@ryanberckmans
Copy link

Currently, the worst-case slashing loss is based on a rough estimate of the loss being equal to triple the proportion of validators recently slashed.

Instead, the estimate may be upgraded to a precise calculation based on the eth2 spec.

@libevm
Copy link
Owner

libevm commented Jan 17, 2022

Do you have a link/examples to the precise calculations? (Sorry not that familiar with ETH2) 🙏

@ryanberckmans
Copy link
Author

ryanberckmans commented Jan 17, 2022

I don't have an example of precise calculations. It may be necessary to go into the eth2 spec https://github.com/ethereum/consensus-specs or ask client teams

@crypto-crack
Copy link

Look like I came to the same simplified solution: min((((3total_validatorspercentage_slashed32)/(total_validators32))*32),32) and since taking count of validators rather than balances etc. the fraction can be reduced to yours.
@libevm detailed calc described here: https://eth2book.info/altair/part3/transition/epoch#slashings

@crypto-crack
Copy link

Not to forget inactivity hit once network is leaking (participation below 66,7%):
ca =32-(322.718^(-1(((duration_hours*60/6.4)^2))/(2^24)))
Certainly less severe (ca 0.1 ETH for 24 hours, 4.4 ETH for 1 week), but prob more likely than slashing bugs?
https://medium.com/prysmatic-labs/eth2-medalla-testnet-incident-f7fbc3cc934a
@libevm detailed calc described here: https://eth2book.info/altair/part2/incentives/inactivity#inactivity-penalties
(I e.g. assumed one's validator to be completely offline)

@ryanberckmans
Copy link
Author

@crypto-crack this is great. Would you be interested in opening a PR to modify the site to include some indication of the inactivity leak penalty that, to your point, may potentially correlate and scale with one's choice of client?

@crypto-crack
Copy link

@ryanberckmans sorry, but I am not a developer unfortunately, so afraid I cannot do PR. But if it helps I made my scenario spreadsheet available here for reference by you or others: https://docs.google.com/spreadsheets/d/12R8wkuv62hZyajrhhlkNrskkwH2-zjYZjXKkHJuxGQc/edit?usp=sharing

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

No branches or pull requests

3 participants