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

Communicate to a user they are a delegate #56

Open
davefrey opened this issue Mar 9, 2021 · 1 comment
Open

Communicate to a user they are a delegate #56

davefrey opened this issue Mar 9, 2021 · 1 comment

Comments

@davefrey
Copy link
Member

davefrey commented Mar 9, 2021

See this discussion

A user presented with a Support/Delegate button for a Proposal should know if they are supporting/delegating only their own vote, or also on behalf of other(s) who have delegated to them.

There is a nuance here: when we present the user's "weight", we can speak of "direct" delegations (those delegations naming the user directly), or "full" delegations (considers not only the direct delegations, but all of the upstream delegations that resolve to the user).

If A and B both delegate to C, and C delegate to D, then using this language we can say D has a direct weight of 2 (C + D themself), or a full weight of 4 (we count A and B as well).

Direct is easier to calculate; full means reducing a graph of delegations from a relational store. For the user the semantics of the two may be different, and they may want to know just one or both.

This may be a feature to hide behind a config point.

This arguably should be presented only when non-zero.

@davefrey davefrey changed the title Hash out delegation UI: how to communicate to a user they are a delegate Communicate to a user they are a delegate Mar 10, 2021
@jinjagit
Copy link
Member

jinjagit commented May 11, 2021

Currently, we calculate a delegate's voting weight when/if the delegate votes. To implement this feature, however, we need to be able to get this weight (and more granular numbers, if we include the 'direct' vs 'indirect' delegations counts idea of Dave's), without waiting for a user to vote.

Thus, a good first step is probably to develop the core functions + absinthe queries needed to return the desired delegation-related values, in our API (see #252)

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

3 participants