Function: requestSlash(address network, address operator, uint256 amount, uint48 captureTimestamp, byte[] hints)
This function requests a slash using a network and a resolver for a particular operator by a given amount using hints.
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.
amountControl: Completely controlled by the caller.
Constraints: Cannot be zero.
Impact: Maximum amount of the collateral to be slashed.
captureTimestampControl: Completely controlled by the caller.
Constraints: Must be within the veto window.
Impact: Time point when the stake was captured.
hintsControl: Completely controlled by the caller.
Constraints: N/A.
Impact: Hints for checkpoints' indexes.
Branches and code coverage (including function calls)
Intended branches
Slash request is queued.
Negative behavior
Reverts if slash amount is zero.
Reverts if
captureTimestampis not within the veto period.Reverts if not called by network middleware.
Reverts if network not opted in vault.
Reverts if operator not opted in vault.
Reverts if operator not opted in network.