From aa04aa8fb711fe85a37d994f0c2ce1132d483ffd Mon Sep 17 00:00:00 2001 From: Miguel de Elias Date: Fri, 23 Aug 2024 16:22:53 -0300 Subject: [PATCH] fix: allow slashing even if SubgraphService is paused (OZ CR-01) --- packages/subgraph-service/contracts/SubgraphService.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/subgraph-service/contracts/SubgraphService.sol b/packages/subgraph-service/contracts/SubgraphService.sol index c06476ec3..c9741d7e2 100644 --- a/packages/subgraph-service/contracts/SubgraphService.sol +++ b/packages/subgraph-service/contracts/SubgraphService.sol @@ -290,7 +290,7 @@ contract SubgraphService is * - uint256 `tokens`: The amount of tokens to slash * - uint256 `reward`: The amount of tokens to reward the slasher */ - function slash(address indexer, bytes calldata data) external override onlyDisputeManager whenNotPaused { + function slash(address indexer, bytes calldata data) external override onlyDisputeManager { (uint256 tokens, uint256 reward) = abi.decode(data, (uint256, uint256)); _graphStaking().slash(indexer, tokens, reward, address(_disputeManager())); emit ServiceProviderSlashed(indexer, tokens);