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

Update delegation to work with linear decay based staking #124

Open
tensojka opened this issue Aug 7, 2024 · 4 comments
Open

Update delegation to work with linear decay based staking #124

tensojka opened this issue Aug 7, 2024 · 4 comments
Assignees

Comments

@tensojka
Copy link
Contributor

tensojka commented Aug 7, 2024

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.)

@EjembiEmmanuel
Copy link
Contributor

@tensojka can I work on this?

@djeck1432
Copy link
Contributor

@tensojka I would like to work on this issue

Copy link

onlydustapp bot commented Aug 7, 2024

Hey @djeck1432!
Thanks for showing interest.
We've created an application for you to contribute to Konoha.
Go check it out on OnlyDust!

@tensojka
Copy link
Contributor Author

tensojka commented Aug 7, 2024

Assigned to @djeck1432 who requested this issue earlier, sorry @EjembiEmmanuel .

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