The deployTokenWithCustomTeamRewardRecipient
function in the Clanker
contract allows protocol admins to deploy a new token with a specified team reward recipient. It verifies the caller's authorization, checks that the team reward recipient address is valid, deploys the token using the deployToken
function, and sets the team reward recipient for the newly created token.
deploymentConfig
(struct DeploymentConfig
): Contains configurations for the token deployment, including:
tokenConfig
(struct TokenConfig
): Configuration for the token, including name
, symbol
, salt
, image
, metadata
, context
, and originatingChainId
.vaultConfig
(struct VaultConfig
): Configuration for the vault, including vaultPercentage
and vaultDuration
.poolConfig
(struct PoolConfig
): Configuration for the liquidity pool, including pairedToken
and tickIfToken0IsNewToken
.initialBuyConfig
(struct InitialBuyConfig
): Configuration for initial buy settings, including pairedTokenPoolFee
and pairedTokenSwapAmountOutMinimum
.rewardsConfig
(struct RewardsConfig
): Configuration for rewards, including creatorReward
, creatorAdmin
, creatorRewardRecipient
, interfaceAdmin
, and interfaceRewardRecipient
.teamRewardRecipient
(address
): The address that will receive the team rewards.tokenAddress
(address
): The address of the newly deployed token.positionId
(uint256
): The identifier for the position associated with the deployed token.