Function: fulfillRequest(uint256 _id, IStrategy[] memory _strategies, uint256[] memory _wadsToSlash, string memory _response)
This function executes a queued slashing request within the APPROVAL_WINDOW. Only the contract owner may call this. On success, the request is marked as fulfilled, EigenLayer slashing is executed, redistribution is cleared, and the bond is refunded to the original bonder.
Inputs
_idValidation: The
_requestsassociated with_idmust have the statusQUEUED— also requiresblock.timestamp <= request.expiry.Impact: Transitions status to
Status.FULFILLED, persists_response, and stores the associatedslashId.
_strategiesValidation: Must have the same length as
_wadsToSlash.Impact: Forwarded to EigenLayer
slashOperatoras the strategies to slash.
_wadsToSlashValidation: Must have the same length as
_strategies.Impact: Forwarded to EigenLayer
slashOperatoras the corresponding amounts to slash.
_responseValidation: None.
Impact: Stored in the request struct and emitted in the event.
Branches and code coverage
Intended branches
Negative behavior
Function call analysis
fulfillRequest -> ALLOCATION_MANAGER.slashOperatorExternal/internal? External.
Argument control? Caller (owner) controls
_strategiesand_wadsToSlash. Theoperator,avs, andoperatorSetIdare derived fromAVS_REGISTRARand contract constants —descriptioncomes from the stored request (set by the bonder).Impact: Executes EigenLayer slashing and returns
slashId, which is stored on the request.
fulfillRequest -> STRATEGY_MANAGER.clearBurnOrRedistributableSharesExternal/internal? External.
Argument control? None by the caller —
operatorSetis derived fromAVS_REGISTRARand contract constants, andslashIdis derived from the previous callslashOperator.Impact: Clears burn or redistributable shares for the operator set and
slashId.
fulfillRequest -> safeTransferExternal/internal? External.
Argument control?
tois the storedbonderandamountis the storedbondAmount— both controlled by the bonder when the request was queued.Impact: Refunds the bond to the bonder upon successful fulfillment.