In combination with querying the current number of votes for each delegating address.
Example:
There are the following votes:
Address
Votes
A
10
B
0
C
5
D
0
E
3
An the following delegation events:
Time
From
To
1
A
B
2
A
C
3
C
D
4
D
C
5
E
A
Who has how many votes?
A has 13 votes (10 + 3 from E)
B has 0 votes because event 1 got overwritten by the second
C has 18 (5 + 13 from A)
D has also 18 votes (18 from C)
E has 3 votes
We should add a new page for governance.
It should contain two areas, one with a list of proposals, and one showing the votes of the users with the possiblitity to set the delegate.
The source for the proposals are the following events:
The source for calculating voting power are the following events:
In combination with querying the current number of votes for each delegating address.
Example:
An the following delegation events:
Who has how many votes?
A has 13 votes (10 + 3 from E) B has 0 votes because event 1 got overwritten by the second C has 18 (5 + 13 from A) D has also 18 votes (18 from C) E has 3 votes