Function: onSlash(address network, address operator, uint256 slashedAmount, uint48 captureTimestamp, byte[] hints)
This function is called when a slash occurs.
Inputs
networkControl: Completely controlled by the caller.
Constraints: N/A.
Impact: Address of the network.
operatorControl: Completely controlled by the caller.
Constraints: N/A.
Impact: Address of the operator.
slashedAmountControl: Completely controlled by the caller.
Constraints: N/A.
Impact: Amount of the collateral slashed.
captureTimestampControl: Completely controlled by the caller.
Constraints: N/A.
Impact: Time point when the stake was captured.
hintsControl: Completely controlled by the caller.
Constraints: N/A.
Impact: Hints for the checkpoints' indexes.
Branches and code coverage (including function calls)
Intended branches
Hook is called if it is set.
Negative behavior
Reverts if not called by the slasher.
Reverts if
slashedAmountis more than the slashable amount for the given operator.