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

Implement StakeManager #549

Open
aloknerurkar opened this issue Dec 30, 2024 · 0 comments
Open

Implement StakeManager #549

aloknerurkar opened this issue Dec 30, 2024 · 0 comments
Assignees

Comments

@aloknerurkar
Copy link
Collaborator

Similar to the current DepositManager, which is used by the provider to check balance of bidders, we also need a StakeManager which tracks the stake of providers.

The StakeManager needs to do the following:

  1. Get minimum stake in the start and track if this value changes using events
  2. Respond to GetStake queries to other packages without querying the RPC but by tracking ProviderStake and Slash events. This would prevent the additional RPC call and also allow us to generate events when provider stake becomes low.
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

No branches or pull requests

1 participant