-
Notifications
You must be signed in to change notification settings - Fork 146
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
[WIP] Horizon Staking #967
Conversation
[WIP] Horizon Staking
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
👍 Dependency issues cleared. Learn more about Socket for GitHub ↗︎ This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## horizon #967 +/- ##
========================================
Coverage 92.70% 92.70%
========================================
Files 46 46
Lines 2370 2370
Branches 426 426
========================================
Hits 2197 2197
Misses 173 173
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
return | ||
serviceProviders[serviceProvider].tokensStaked - | ||
serviceProviders[serviceProvider].tokensProvisioned - | ||
serviceProviders[serviceProvider].__DEPRECATED_tokensLocked; |
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.
return | |
serviceProviders[serviceProvider].tokensStaked - | |
serviceProviders[serviceProvider].tokensProvisioned - | |
serviceProviders[serviceProvider].__DEPRECATED_tokensLocked; | |
return | |
serviceProviders[serviceProvider].tokensStaked - | |
serviceProviders[serviceProvider].tokensProvisioned - | |
serviceProviders[serviceProvider].__DEPRECATED_tokensLocked - | |
serviceProviders[serviceProvider].__DEPRECATED_tokensAllocated; |
I think we need to also deduct tokensAllocated
to prevent service providers from "double dipping" the stake.
No description provided.