Skip to content

Implement StakeManager #549

@aloknerurkar

Description

@aloknerurkar

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions