tangle-network / tangle

The Layer 1 blockchain for on-demand services.
https://www.tangle.tools/
GNU General Public License v3.0
51 stars 25 forks source link

[TASK] Add slashing to services pallet #777

Closed drewstone closed 1 month ago

drewstone commented 2 months 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