From 0aae4355d6b32f7ce35cee6b2a97672da0c8df97 Mon Sep 17 00:00:00 2001 From: 8sunyuan Date: Tue, 21 Nov 2023 10:09:01 -0500 Subject: [PATCH] feat: add to DM interface --- src/contracts/interfaces/IDelegationManager.sol | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/contracts/interfaces/IDelegationManager.sol b/src/contracts/interfaces/IDelegationManager.sol index 528b62e50..4f9ef82f0 100644 --- a/src/contracts/interfaces/IDelegationManager.sol +++ b/src/contracts/interfaces/IDelegationManager.sol @@ -369,6 +369,14 @@ interface IDelegationManager is ISignatureUtils { */ function delegationApproverSaltIsSpent(address _delegationApprover, bytes32 salt) external view returns (bool); + /** + * @notice Minimum delay enforced by this contract for completing queued withdrawals. Measured in blocks, and adjustable by this contract's owner, + * up to a maximum of `MAX_WITHDRAWAL_DELAY_BLOCKS`. Minimum value is 0 (i.e. no delay enforced). + * @dev Note that the withdrawal delay is not enforced on withdrawals of 'beaconChainETH', as the EigenPods have their own separate delay mechanic + * and we want to avoid stacking multiple enforced delays onto a single withdrawal. + */ + function withdrawalDelayBlocks() external view returns (uint256); + /** * @notice Calculates the digestHash for a `staker` to sign to delegate to an `operator` * @param staker The signing staker