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 @@ -457,4 +457,17 @@ contract FactoryTokenContractV2 is Ownable, ReentrancyGuard, Pausable {
liquidityManager = LiquidityManager(_newManager);
emit ContractUpgraded("LiquidityManager", oldManager, _newManager);
}

/**
* @notice Update vesting contract
* @param _newVesting New vesting contract address
*/
function updateVestingContract(address _newVesting) external onlyOwner {
if (_newVesting == address(0)) {
revert FactoryTokenContract__InvalidAddress();
}
address oldVesting = address(vestingContract);
vestingContract = VestingContract(_newVesting);
emit ContractUpgraded("VestingContract", oldVesting, _newVesting);
}
}
Loading