Skip to content

Update delegation to work with linear decay based staking #124

@ondrejsojka

Description

@ondrejsojka

Currently, delegation doesn't work with staking at all. It needs to be redone to work with the new linear decay based staking (#113).

When counting adjusted voting power, votes from people who delegated to the voter should be counted too.

The adjusted voting power (including delegated votes) should be counted in such a way to not depend on the total number of people who delegated to the voter. (O(1) not O(n))

You should also have decreased voting power if you delegated your voting power.

Double-counting votes when undelegating should not be possible. (Once, the person you delegated to votes, then you undelegate, then you vote – the second vote should fail and vice versa.)

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