We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ecf976 commit 9e34108Copy full SHA for 9e34108
1 file changed
protocol-contracts/staking/contracts/OperatorRewarder.sol
@@ -292,6 +292,10 @@ contract OperatorRewarder is Ownable {
292
/**
293
* @notice Transfers the beneficiary address.
294
* @param newBeneficiary The new beneficiary address.
295
+ * @dev Transferring the beneficiary address does not trigger a claim of unclaimed fees for the
296
+ * old beneficiary on purpose. This is to avoid losing unclaimed fees in case a beneficiary loses
297
+ * access to their private key. It is acceptable as the owner (who can set the beneficiary) is
298
+ * expected to be a governance DAO.
299
*/
300
function _transferBeneficiary(address newBeneficiary) internal virtual {
301
require(newBeneficiary != address(0), InvalidBeneficiary(address(0)));
0 commit comments