From 22263ff038936b3d0ff81885b45f5dfa34fa9b4f Mon Sep 17 00:00:00 2001 From: Melanciani Date: Tue, 30 Dec 2025 14:45:47 +0100 Subject: [PATCH] fix(protocol-contracts): add indexed parameters to staking events (N-02) --- protocol-contracts/staking/contracts/OperatorRewarder.sol | 8 ++++---- protocol-contracts/staking/contracts/OperatorStaking.sol | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/protocol-contracts/staking/contracts/OperatorRewarder.sol b/protocol-contracts/staking/contracts/OperatorRewarder.sol index 7fc9d1df19..56865b8858 100644 --- a/protocol-contracts/staking/contracts/OperatorRewarder.sol +++ b/protocol-contracts/staking/contracts/OperatorRewarder.sol @@ -36,19 +36,19 @@ contract OperatorRewarder { mapping(address => address) private _authorizedClaimers; /// @notice Emitted when the beneficiary is transferred. - event BeneficiaryTransferred(address oldBeneficiary, address newBeneficiary); + event BeneficiaryTransferred(address indexed oldBeneficiary, address indexed newBeneficiary); /// @notice Emitted when the contract is shut down. event Shutdown(); /// @notice Emitted when the maximum fee is updated. - event MaxFeeUpdated(uint16 oldFee, uint16 newFee); + event MaxFeeUpdated(uint16 indexed oldFee, uint16 indexed newFee); /// @notice Emitted when the fee is updated. - event FeeUpdated(uint16 oldFee, uint16 newFee); + event FeeUpdated(uint16 indexed oldFee, uint16 indexed newFee); /// @notice Emitted when an address is authorized to claim rewards on behalf of the receiver address. - event ClaimerAuthorized(address receiver, address claimer); + event ClaimerAuthorized(address indexed receiver, address indexed claimer); /// @notice Error for invalid claimer address. error InvalidClaimer(address claimer); diff --git a/protocol-contracts/staking/contracts/OperatorStaking.sol b/protocol-contracts/staking/contracts/OperatorStaking.sol index 2f047261d3..62aed3ba27 100644 --- a/protocol-contracts/staking/contracts/OperatorStaking.sol +++ b/protocol-contracts/staking/contracts/OperatorStaking.sol @@ -61,7 +61,7 @@ contract OperatorStaking is ERC1363Upgradeable, ReentrancyGuardTransient, UUPSUp ); /// @dev Emitted when the rewarder contract is set. - event RewarderSet(address oldRewarder, address newRewarder); + event RewarderSet(address indexed oldRewarder, address indexed newRewarder); /// @dev Thrown when the caller is not the ProtocolStaking's owner. error CallerNotProtocolStakingOwner(address caller);