webb-tools / tangle

Modular restaking infrastructure for developers, restakers, and operators.
https://www.tangle.tools/
GNU General Public License v3.0
51 stars 24 forks source link

[TASK] Add slashing to services pallet #777

Open drewstone opened 1 day ago

drewstone commented 1 day ago

Overview

Slashing should be able to affect up to 100% of the assets on a given service instance. The blueprint developer should be able to define what percentage of tokens to slash for a given malicious or non-ideal behavior. If tokens are slashed, they should be moved into a "container" that allows governance to decide where to send them or what to do with them (veto the slashing condition). This connects with the slashing queue task that we have defined previously #775.

The options for the queue outcomes are

  1. Send funds to treasury (default if no action taken)
  2. Burn them.
  3. Veto the slashing.
  4. Send funds to a different account