Skip to content

Conversation

@ypatil12
Copy link
Collaborator

@ypatil12 ypatil12 commented Jan 17, 2025

Fixes the negative shares edge case where an operator is overrewarded shares if a staker, who previously had negative shares, completes a withdrawal as shares. Integration upgrade tests have been added to verify behavior.

@ypatil12 ypatil12 force-pushed the fix/ep-negative-shares-bug branch from d4a2441 to 0c7a702 Compare January 24, 2025 15:55
@ypatil12
Copy link
Collaborator Author

Proof of failure on bringing old logic back:

image

@ypatil12 ypatil12 marked this pull request as ready for review January 24, 2025 20:53
Copy link
Contributor

@wadealexc wadealexc left a comment

Choose a reason for hiding this comment

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

LGTM

@ypatil12 ypatil12 force-pushed the fix/ep-negative-shares-bug branch from 62e6d5f to d1c1d5f Compare February 3, 2025 15:11
@ypatil12 ypatil12 merged commit da9f3dc into slashing-magnitudes-fixes Feb 3, 2025
11 checks passed
@ypatil12 ypatil12 deleted the fix/ep-negative-shares-bug branch February 3, 2025 17:15
0xClandestine pushed a commit that referenced this pull request Feb 11, 2025
* fix: ep negative shares bug

* fix: comments

* test: add integration tests for neg shares

* chore: remove logs

* chore: use already calculated delta

* chore: use stable foundry release in CI
ypatil12 added a commit that referenced this pull request Feb 19, 2025
* fix: ep negative shares bug

* fix: comments

* test: add integration tests for neg shares

* chore: remove logs

* chore: use already calculated delta

* chore: use stable foundry release in CI
ypatil12 added a commit that referenced this pull request Feb 20, 2025
* fix: ep negative shares bug

* fix: comments

* test: add integration tests for neg shares

* chore: remove logs

* chore: use already calculated delta

* chore: use stable foundry release in CI
ypatil12 added a commit that referenced this pull request Feb 20, 2025
* fix: ep negative shares bug

* fix: comments

* test: add integration tests for neg shares

* chore: remove logs

* chore: use already calculated delta

* chore: use stable foundry release in CI
ypatil12 added a commit that referenced this pull request Feb 20, 2025
* fix: ep negative shares bug

* fix: comments

* test: add integration tests for neg shares

* chore: remove logs

* chore: use already calculated delta

* chore: use stable foundry release in CI
ypatil12 added a commit that referenced this pull request Feb 20, 2025
* fix: ep negative shares bug

* fix: comments

* test: add integration tests for neg shares

* chore: remove logs

* chore: use already calculated delta

* chore: use stable foundry release in CI
ypatil12 added a commit that referenced this pull request Feb 20, 2025
* fix: ep negative shares bug

* fix: comments

* test: add integration tests for neg shares

* chore: remove logs

* chore: use already calculated delta

* chore: use stable foundry release in CI
ypatil12 added a commit that referenced this pull request Feb 20, 2025
* fix: ep negative shares bug

* fix: comments

* test: add integration tests for neg shares

* chore: remove logs

* chore: use already calculated delta

* chore: use stable foundry release in CI
ypatil12 added a commit that referenced this pull request Feb 20, 2025
* fix: ep negative shares bug

* fix: comments

* test: add integration tests for neg shares

* chore: remove logs

* chore: use already calculated delta

* chore: use stable foundry release in CI
ypatil12 added a commit that referenced this pull request Feb 20, 2025
* fix: ep negative shares bug

* fix: comments

* test: add integration tests for neg shares

* chore: remove logs

* chore: use already calculated delta

* chore: use stable foundry release in CI
ypatil12 added a commit that referenced this pull request Feb 20, 2025
* fix: ep negative shares bug

* fix: comments

* test: add integration tests for neg shares

* chore: remove logs

* chore: use already calculated delta

* chore: use stable foundry release in CI
ypatil12 added a commit that referenced this pull request Feb 20, 2025
* fix: ep negative shares bug

* fix: comments

* test: add integration tests for neg shares

* chore: remove logs

* chore: use already calculated delta

* chore: use stable foundry release in CI
ypatil12 added a commit that referenced this pull request Feb 20, 2025
* fix: ep negative shares bug

* fix: comments

* test: add integration tests for neg shares

* chore: remove logs

* chore: use already calculated delta

* chore: use stable foundry release in CI
ypatil12 added a commit that referenced this pull request Feb 20, 2025
* fix: ep negative shares bug

* fix: comments

* test: add integration tests for neg shares

* chore: remove logs

* chore: use already calculated delta

* chore: use stable foundry release in CI
ypatil12 added a commit that referenced this pull request Feb 20, 2025
* fix: ep negative shares bug

* fix: comments

* test: add integration tests for neg shares

* chore: remove logs

* chore: use already calculated delta

* chore: use stable foundry release in CI
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.

5 participants