Slashing
In Creditcoin, slashing serves as a means to discourage malicious behavior by imposing penalties on validators who act against the network's interests. Validators who partake in harmful activities may face a reduction in their staked tokens through slashing. This mechanism plays a vital role in upholding the network's security and integrity by incentivizing validators to prioritize the network's well-being.
In the event of a slash, any nominators who were backing the slashed validator will also have their stake slashed. This creates a reputational incentive for validators to maintain good behaviour, which is required to attract nominator stake, and simultaneously, incentives nominators to thoroughly evaluate any validators before backing them, resulting in increased overall network security. Regardless of whether you nominate validators directly or through a nomination pool, your stake is susceptible to slashing.
Types of Offences
There are three types of offences in the Creditcoin network which can lead to a validator getting slashed:
Inactivity: being offline during a designated time slot
Block production: producing more than one block in a designated time slot
Block finalization: finalizing blocks on two different versions of the chain (forks) in the same time slot
Each offence has its own penalty calculation. Inactivity goes from a minor warning that chills the validator (removes it from the active set) up to up to slashing 7% of a validator’s total backing stake if several validators go offline during a single era.
![](https://docs.creditcoin.org/~gitbook/image?url=https%3A%2F%2F2085783852-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FGoIss7kqkOwie7OZJWjb%252Fuploads%252Ffwd1vBMg5oPQJudFp10y%252FSlashing%2520penalty.png%3Falt%3Dmedia%26token%3D5af169ee-da93-4467-b7c5-c86d18557fd2&width=768&dpr=4&quality=100&sign=61572bd6&sv=1)
Validators who commit production or finalization offences get between 0% and 100% of their stake slashed depending on how many offences of the same type where recorded in that particular era.
![](https://docs.creditcoin.org/~gitbook/image?url=https%3A%2F%2F2085783852-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FGoIss7kqkOwie7OZJWjb%252Fuploads%252Fd0MdE2EVPnmF4fAwVuCL%252Fimage.png%3Falt%3Dmedia%26token%3D01e732cd-5402-47b5-92c2-d29cb14c9b34&width=768&dpr=4&quality=100&sign=3abecbd2&sv=1)
Slashing calculations
Offence | Formula | Range |
Inactivity |
| 0% (chill) - 7% |
Block production offence |
| 0% - 100% |
Block finalization offence |
| 0% - 100% |
Last updated