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

Fix the operator stake share basis point calculation #658

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

jianoaix
Copy link
Contributor

@jianoaix jianoaix commented Jul 23, 2024

Why are these changes needed?

The current 100000 is not providing basis point, but 0.1 basis point. It needs to be 10000.

Otherwise, we will see 17351.099508447942 basis point for a large operator, which means more than 100% of stake (it should be just 17.35%)

Checks

  • I've made sure the lint is passing in this PR.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, in that case, please comment that they are not relevant.
  • Testing Strategy
    • Unit tests
    • Integration tests
    • This PR is not tested :(

@jianoaix
Copy link
Contributor Author

jianoaix commented Aug 2, 2024

ping

@jianoaix
Copy link
Contributor Author

jianoaix commented Aug 6, 2024

ping again

@jianoaix
Copy link
Contributor Author

jianoaix commented Aug 6, 2024

This basically reverts #590, which wasn't right fix to *100000

@jianoaix jianoaix merged commit dd1c604 into Layr-Labs:master Aug 6, 2024
7 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.

2 participants