Skip to main content

IDelegatorHook

Git Source

Methods

onSlash

function onSlash(bytes32 subnetwork, address operator, uint256 slashedAmount, uint48 captureTimestamp, bytes data) external nonpayable

Called when a slash happens.

Parameters

NameTypeDescription
subnetworkbytes32full identifier of the subnetwork (address of the network concatenated with the uint96 identifier)
operatoraddressaddress of the operator
slashedAmountuint256amount of the collateral slashed
captureTimestampuint48time point when the stake was captured
databytessome additional data