admin can change protocol fee address

This commit is contained in:
tim
2025-10-22 11:04:11 -04:00
parent 903f65327a
commit 2e61235b68
2 changed files with 15 additions and 8 deletions

View File

@@ -32,8 +32,8 @@ contract PartyPlanner is OwnableExternal, IPartyPlanner {
function protocolFeePpm() external view returns (uint256) { return PROTOCOL_FEE_PPM; }
/// @notice Address to receive protocol fees for pools created by this planner (may be address(0))
address private immutable PROTOCOL_FEE_ADDRESS;
function protocolFeeAddress() external view returns (address) { return PROTOCOL_FEE_ADDRESS; }
address public protocolFeeAddress;
function setProtocolFeeAddress( address feeAddress ) external onlyOwner { protocolFeeAddress = feeAddress; }
NativeWrapper private immutable WRAPPER;
function wrapper() external view returns (NativeWrapper) { return WRAPPER; }
@@ -78,7 +78,7 @@ contract PartyPlanner is OwnableExternal, IPartyPlanner {
require(protocolFeePpm_ < 1_000_000, "Planner: protocol fee >= ppm");
PROTOCOL_FEE_PPM = protocolFeePpm_;
PROTOCOL_FEE_ADDRESS = protocolFeeAddress_;
protocolFeeAddress = protocolFeeAddress_;
}
/// Main newPool variant: accepts kappa directly (preferred).
@@ -120,7 +120,7 @@ contract PartyPlanner is OwnableExternal, IPartyPlanner {
swapFeePpm_,
flashFeePpm_,
PROTOCOL_FEE_PPM,
PROTOCOL_FEE_ADDRESS,
protocolFeeAddress,
WRAPPER,
SWAP_IMPL,
MINT_IMPL