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

Generalize governance to stake changes subscriber #98

Merged
merged 2 commits into from
Nov 10, 2024

Conversation

thaarok
Copy link
Collaborator

@thaarok thaarok commented Nov 7, 2024

As discussed today, we may generalize votebook/governance interface to a generic stake changes subscriber.

Still not confirm if needed for the bridge, but maybe it can be considered an improvement even without it.

Removed external-callable recountVotes() instance, as it only potentially breaks the security model of the called contract. (If it is inteded to be called by user, the target contract should allow it directly.)

@thaarok thaarok requested a review from jmpike November 7, 2024 15:47
@thaarok thaarok force-pushed the jk/generalize-recount branch from 1e3457c to ac50255 Compare November 8, 2024 15:39
jmpike
jmpike previously approved these changes Nov 9, 2024
Copy link
Collaborator

@jmpike jmpike left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
Thanks.

Copy link
Collaborator

@jmpike jmpike left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The "State" would work, but this is better. TY

@thaarok thaarok merged commit 2c2a960 into main Nov 10, 2024
2 checks passed
@thaarok thaarok deleted the jk/generalize-recount branch November 15, 2024 09:31
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

Successfully merging this pull request may close these issues.

2 participants