Skip to content
Merged
Changes from 11 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
44 changes: 44 additions & 0 deletions src/LiquidityManagerV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -629,4 +629,48 @@ contract LiquidityManagerV2 is Ownable, ReentrancyGuard, Pausable {
}
protocolFeeRecipient = newRecipient;
}

/**
* @notice Update vesting contract
* @param newVestingContract New vesting contract address
*/
function updateVestingContract(address newVestingContract) external onlyOwner {
if (newVestingContract == address(0)) {
revert LiquidityManager__InvalidTokenAddress();
}
vestingContract = VestingContract(newVestingContract);
}

/**
* @notice Update factory contract
* @param newFactory New factory contract address
*/
function updateFactoryContract(address newFactory) external onlyOwner {
if (newFactory == address(0)) {
revert LiquidityManager__InvalidTokenAddress();
}
factoryContract = newFactory;
}

/**
* @notice Pause the contract
*/
function pause() external onlyOwner {
_pause();
}

/**
* @notice Unpause the contract
*/
function unpause() external onlyOwner {
_unpause();
}

/**
* @notice Enable emergency mode for a pool
* @param poolId Pool identifier
*/
function enableEmergencyMode(bytes32 poolId) external onlyOwner {
poolInfo[poolId].emergencyMode = true;
}
}
Loading