-
Notifications
You must be signed in to change notification settings - Fork 365
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
fix: delegate shares #1045
Merged
0xClandestine
merged 51 commits into
slashing-magnitudes-fixes
from
delegate-shares-fix
Feb 13, 2025
+1,777
−1,483
Merged
fix: delegate shares #1045
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
f893aeb
fix: changing accounting math when delegating beacon chain ETH
9c22d31
fix: changing to special-case approach
eb011b6
docs: removing logs
aaa92c8
docs: removing more logs
e543dd1
refactor: remove getDelegatableShares
d2f5fe0
docs: shares upon delegation
8sunyuan a4b8281
chore: fix md view
8sunyuan 3bac447
Merge branch 'slashing-magnitudes-fixes' into delegate-shares-fix
eigenmikem 7f7bd79
refactor: move logic into increaseDelegation and slashingLib
769f6d7
style: undoing formatting changes
811c240
chore: lint
b584ee4
chore: lint
71e498b
Merge branch 'beacon-delegation-accounting' into delegate-shares-fix
ef50a8b
test: base scenario integration test
2b46b93
test: integration tests
5c6f931
docs: natspec comment for dsf.updateNewDelegation
9eb35aa
Merge branch 'slashing-magnitudes-fixes' into delegate-shares-fix
eigenmikem 2e5d79d
refactor: use view function to decrease contract size
0b556de
chore: update allocation refs
5b8703f
Merge branch 'slashing-magnitudes-fixes' into delegate-shares-fix
eigenmikem d467531
Merge branch 'slashing-magnitudes-fixes' into delegate-shares-fix
eigenmikem 832153e
chore: cleanup new delegation branching
wadealexc d6837d5
refactor: explicitly reset dsf for simplicity
57883c1
chore: lint
73df934
refactor: removing unnecessary logic after explicit dsf reset
6b87670
chore: lint
19952dc
refactor: move reset dsf block
a465514
feat: clarify edge casing in delegate
wadealexc 8ec0162
test: remove all shares integration test
4f6ba21
docs: comment explaining dsf rest
13b5170
style: dsf reset condensed to one line
55abe6a
Merge branch 'slashing-magnitudes-fixes' into delegate-shares-fix
eigenmikem 1ce151a
Update SharesAccounting.md
eigenmikem 9757137
docs: added explanation of dsf rest
eigenmikem 4292393
chore: remove extra reset in undelegate
b24ad11
refactor: reset dsf to 0 for gas rebate
6eb8ab3
refactor: change removeDepositShares to return updated shares and use…
bfa0c7f
chore: integration prefix
c5d71cf
Merge branch 'slashing-magnitudes-fixes' into delegate-shares-fix
eigenmikem 2fc9a4c
refactor: fixing tests and rounding issues
578b9f0
chore: remove logs
31e04bd
chore: updating queuewithdrawalsm2
768597f
chore: Revert "chore: updating queuewithdrawalsm2"
9a6b3de
fix: m2 user creation logic
ypatil12 6948470
test: randomize beacon chain deposit amount
beddfe4
docs: return value
1e232d7
Merge branch 'slashing-magnitudes-fixes' into delegate-shares-fix
eigenmikem f4a0163
docs: update comments
wadealexc 86c255d
test: uncomment working assertion and clarify commented out one
wadealexc 00fadd6
Merge branch 'slashing-magnitudes-fixes' into delegate-shares-fix
eigenmikem 3b418ca
fix: ci
0xClandestine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: since undelegated, staker maxMagnitude is 0 so their slashingFactor only needs to use the BCSF for calculating withdrawable.