Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/FactoryTokenContractV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Loading