Skip to content

Commit

Permalink
fix: allow slashing even if SubgraphService is paused (OZ CR-01)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maikol committed Aug 24, 2024
1 parent 7436871 commit aa04aa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/subgraph-service/contracts/SubgraphService.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aa04aa8

Please sign in to comment.