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

[mtg-576] Experimental slashing #34

Merged
merged 7 commits into from
Sep 16, 2024

Conversation

kstepanovdev
Copy link
Collaborator

No description provided.

@kstepanovdev kstepanovdev self-assigned this Sep 11, 2024
@kstepanovdev kstepanovdev changed the title Experimental slashing [mtg-576] Experimental slashing Sep 11, 2024
Copy link
Contributor

@StanChe StanChe left a comment

Choose a reason for hiding this comment

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

Looks valid. The withdraw operation is extended with an additional account, so front will be updated. Where will the front-end take the treasury from?

record.voter_weight = voter.weight()?;
record.voter_weight_expiry = Some(Clock::get()?.slot);
if slashing_penalty > 0 {
let realm_treasury = ctx.accounts.realm_treasury.to_account_info();
Copy link
Contributor

Choose a reason for hiding this comment

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

Realm treasury may only be the real treasury, not my second address.

@kstepanovdev kstepanovdev merged commit cebd1cd into penalties/slashing Sep 16, 2024
0 of 2 checks passed
@kstepanovdev kstepanovdev deleted the experimental-slashing branch September 16, 2024 10:53
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