livepeer / livepeer/subgraph

Delegated SAFEs show incorrect history

Open
#163 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5
Forks
7
Avg merge
4h 1m
Merged PRs (30d)
6

Description

`0xE983D60dE7E40fea4b2c878c21CD88AaFE5CD16d` is a multisig SAFE wallet that is staked to @stronk-dev. [The explorer reports that correctly](https://explorer.livepeer.org/accounts/0xE983D60dE7E40fea4b2c878c21CD88AaFE5CD16d/delegating):

![Image](https://github.com/user-attachments/assets/447103a1-a373-4d27-97da-64def56e45aa)

But that account has nothing in the "history" tab. When did it delegate?

![Image](https://github.com/user-attachments/assets/1e20cade-064b-470d-b084-de21f7cb32ef)

[That history is instead attributed to iameli.eth](https://explorer.livepeer.org/accounts/0x70CAb68009e9545f8bebcD20469b8d3bAab5DB8F/history) (`0x70CAb68009e9545f8bebcD20469b8d3bAab5DB8F`), which is the account that _performed the delegation_ using authorizations from the multisig, but it was not the actual delegate.

![Image](https://github.com/user-attachments/assets/49447aa4-5255-4b92-b4ed-e010a42fd071)

The error appears to be coming from the subgraph aggregation rather than anything on-chain, thankfully

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue identifies subgraph aggregation as the likely source of the incorrect history attribution. Start by tracing how delegated SAFE events are attributed to accounts, then verify the affected multisig history against the delegation performed through authorizations; done means the history appears under the actual delegate account rather than the authorizing account.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.