Skip to content
Unverified Commit 332626a3 authored by Niklas Adolfsson's avatar Niklas Adolfsson
Browse files

feat: split rewarding and slashing

This commit splits the `DoSlash` trait in two traits: `DoReward` and `DoSlash`

The reasons for it, is that we want reward based on the `total slashed amount`
but the entire amount doesn't necessarily be rewarded. Some part of the total
slashed amount might need to transmitted to some other part such as
`treasory`.

Thus, instead we return the total slash and `ReportSlashing` has to determine
what to do with the total slashed amount.

In other words, the concrete misconduct type determines what to do.
parent fa2f9c1d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment