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

[1.0.0] Slashing Magnitudes #160

Merged
merged 11 commits into from
Dec 17, 2024
Merged

Conversation

jbrower95
Copy link
Contributor

@jbrower95 jbrower95 commented Dec 16, 2024

Summary

  • podOwnerShares -> getWithdrawableShares
  • Updated to use eigenlayer-contracts generated ABIs, instead of the ones left in this repo.
  • status + find-stale-pods updated.

status Command

  • The shares are computed as getWithdrawableShares() over the beacon chain.

find-stale-pods command

  • Rewritten to use multicall.
  • Rewritten per our updated computation.

cli/core/status.go Outdated Show resolved Hide resolved
cli/core/findStalePods.go Outdated Show resolved Hide resolved
totalDepositedShares := utils.BigSum(shares)

// TODO: is this calculation correct?
currentOwnerSharesETH := IweiToEther(totalDepositedShares)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

cli/core/status.go Outdated Show resolved Hide resolved
@jbrower95 jbrower95 changed the base branch from master to slashing-magnitudes December 17, 2024 01:31
@jbrower95 jbrower95 changed the title [wip] Changes to support 1.0.0 slashing [1.0.0] Slashing Magnitudes Dec 17, 2024
cli/core/findStalePods.go Outdated Show resolved Hide resolved
@jbrower95 jbrower95 merged commit 736ba36 into slashing-magnitudes Dec 17, 2024
3 of 4 checks passed
@jbrower95 jbrower95 deleted the jb/fix-cli-slashing branch December 17, 2024 19:59
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