Skip to content

Commit

Permalink
feat(Gateway): rename Slashed event to BridgeSlashed
Browse files Browse the repository at this point in the history
  • Loading branch information
nxqbao committed Mar 6, 2024
1 parent 27b6b07 commit 561dafd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/interfaces/bridge/events/IBridgeSlashEvents.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ interface IBridgeSlashEvents {
* @param period The period in which the operator is slashed.
* @param slashUntilPeriod The period until which the operator is penalized.
*/
event Slashed(Tier indexed tier, address indexed bridgeOperator, uint256 indexed period, uint256 slashUntilPeriod);
event BridgeSlashed(Tier indexed tier, address indexed bridgeOperator, uint256 indexed period, uint256 slashUntilPeriod);

/**
* @dev Emitted when a removal request is made for a bridge operator.
Expand Down
4 changes: 2 additions & 2 deletions src/ronin/gateway/BridgeSlash.sol
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ contract BridgeSlash is
emit RemovalRequested(period, bridgeOperator);
}

// Emit the Slashed event if the tier is not Tier 0 and bridge operator will not be removed.
// Emit the {BridgeSlashed} event if the tier is not Tier 0 and bridge operator will not be removed.
// Update the slash until period number for the bridge operator if the tier is not Tier 0.
if (tier != Tier.Tier0) {
if (slashUntilPeriod != SLASH_PERMANENT_DURATION) {
emit Slashed(tier, bridgeOperator, period, slashUntilPeriod);
emit BridgeSlashed(tier, bridgeOperator, period, slashUntilPeriod);
}

// Store updated slash until period
Expand Down

0 comments on commit 561dafd

Please sign in to comment.