Skip to content

Delegators not removed when they undelegate #99

@rickstaa

Description

@rickstaa

Describe the bug

I just noticed a minor bug that causes delegators already undelegated to be still returned by livepeer_orch_delegator_bonded_amount.

Reproduction steps

  1. Ensure the exporter is started as explained in the README.
  2. Ensure you delegate and undelegate LPT to your orchestrator in two rounds.
  3. Go to the Grafana Explore tab.
  4. Checkout the livepeer_orch_delegator_bonded_amount metric.
  5. See that the exporter still returns the accounts already undelegated.

Expected behaviour

These undelegated accounts should not be returned.

Screenshots / Live demo link

No response

System information

  • Run method: Docker
  • OS: Linux
  • Exporter version: 2.8.1

Additional context

This possible is an easy bug to fix since this data is not returned by the Livepeer Subgraph.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions