Slashing Setup
This guide walks you through the process of enabling and configuring slashing for your network using the Othentic Stack.
Slashing in the Othentic Stack can be enforced via Slashing Modules, Custom Slashing, or both.
Read More
Prerequisites
AVS Contract addresses
Access to AVS governance multisig account
Enable Slashing Modules
Update Slashing Modules Configuration
Decide on which Slashing Modules you wish to enable.
Then, for each module, use the updateSlashingConfig function in the AVSGovernance contract to configure slashing conditions, including:
Unique Stake percentage to slash for violation
Whether to eject operators on violation
Enable Slashing conditions per task definition
For Rejected Tasks or Incorrect Attestations conditions, after configuring the module in AVSGovernance, you must enable slashing per Task Definition in AttestationCenter contract.
Rejected Task Slashing Enable using setIsRejectedTaskSlashingEnabled function in the AttestationCenter contract
Incorrect Attestation Slashing Enable using setIsIncorrectAttestationSlashingEnabled function in the AttestationCenter contract
Only enable these conditions after ensuring the task execution and validation logic are stable and deterministic.
Set Challenger Rewards
For Rejected Tasks or Incorrect Attestations conditions, define the reward given to challengers who submit valid proofs of misbehavior.
Use the setChallengerRewardFee function in the AttestationCenter contract to set the reward amount for a valid challenge submitted by an operator.
Learn more about the Challenger System here.
[Optional] Set minimum Slashable Stake
Define the minimum slashable stake an Operator must maintain to be eligible for slashing:
othentic-cli network set-min-slashable-stake
Enable Custom Slashing
Assign Slashing Roles
Assign the required roles using Slashing Roles Configuration functions in the AttestationCenter contract.
Set or revoke
SLASHER
: UsesetSlasher
orrevokeSlasher
functionsSet or revoke
Ejector
: UsesetEjector
orrevokeEjector
functions
Use Custom Slashing methods
Customize the logic to trigger the custom slashing functions like ejectOperatorFromNetwork and applyCustomSlashing.
Last updated