Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/SlashingRegistryCoordinator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,8 @@ contract SlashingRegistryCoordinator is
} else if (stakeType == IStakeRegistryTypes.StakeType.TOTAL_SLASHABLE) {
// For slashable stake quorums, ensure lookAheadPeriod is less than DEALLOCATION_DELAY
require(
AllocationManager(address(allocationManager)).DEALLOCATION_DELAY() > lookAheadPeriod,
lookAheadPeriod
<= AllocationManager(address(allocationManager)).DEALLOCATION_DELAY(),
LookAheadPeriodTooLong()
);
stakeRegistry.initializeSlashableStakeQuorum(
Expand Down
2 changes: 1 addition & 1 deletion test/unit/SlashingRegistryCoordinatorUnit.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ contract SlashingRegistryCoordinator_CreateSlashableStakeQuorum is
uint32 deallocationDelay =
AllocationManager(address(coreDeployment.allocationManager)).DEALLOCATION_DELAY();

uint32 tooLongLookAheadPeriod = deallocationDelay;
uint32 tooLongLookAheadPeriod = deallocationDelay + 1;

vm.prank(proxyAdminOwner);
vm.expectRevert(LookAheadPeriodTooLong.selector);
Expand Down