diff --git a/src/FactoryTokenContractV2.sol b/src/FactoryTokenContractV2.sol index 2ada1ed..5ea5a7d 100644 --- a/src/FactoryTokenContractV2.sol +++ b/src/FactoryTokenContractV2.sol @@ -431,4 +431,17 @@ contract FactoryTokenContractV2 is Ownable, ReentrancyGuard, Pausable { creationFee = _newFee; emit CreationFeeUpdated(oldFee, _newFee); } + + /** + * @notice Update fee recipient + * @param _newRecipient New fee recipient address + */ + function updateFeeRecipient(address _newRecipient) external onlyOwner { + if (_newRecipient == address(0)) { + revert FactoryTokenContract__InvalidAddress(); + } + address oldRecipient = feeRecipient; + feeRecipient = _newRecipient; + emit FeeRecipientUpdated(oldRecipient, _newRecipient); + } }