Skip to content

Commit

Permalink
fix: statemind-Double import of IVetoSlasher in VaultManager.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
alrxy committed Dec 2, 2024
1 parent 019433a commit 52ae4ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/managers/VaultManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {IEntity} from "@symbiotic/interfaces/common/IEntity.sol";
import {IVetoSlasher} from "@symbiotic/interfaces/slasher/IVetoSlasher.sol";
import {Subnetwork} from "@symbiotic/contracts/libraries/Subnetwork.sol";
import {ISlasher} from "@symbiotic/interfaces/slasher/ISlasher.sol";
import {IVetoSlasher} from "@symbiotic/interfaces/slasher/IVetoSlasher.sol";
import {IOperatorSpecificDelegator} from "@symbiotic/interfaces/delegator/IOperatorSpecificDelegator.sol";

import {Time} from "@openzeppelin/contracts/utils/types/Time.sol";
Expand Down Expand Up @@ -698,7 +697,7 @@ abstract contract VaultManager is BaseManager {
function _validateOperatorVault(address operator, address vault) internal view {
address delegator = IVault(vault).delegator();
if (
delegator == address(0) || IEntity(delegator).TYPE() != OPERATOR_SPECIFIC_DELEGATOR_TYPE
IEntity(delegator).TYPE() != OPERATOR_SPECIFIC_DELEGATOR_TYPE
|| IOperatorSpecificDelegator(delegator).operator() != operator
) {
revert NotOperatorSpecificVault();
Expand Down

0 comments on commit 52ae4ff

Please sign in to comment.