Clanker
Source:Verified
Write Functions / deployTokenWithCustomTeamRewardRecipient
Overview

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.

Inputs
  • 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.
Outputs
  • tokenAddress (address): The address of the newly deployed token.
  • positionId (uint256): The identifier for the position associated with the deployed token.
Emits Zero Events
Functions will often emit events during execution, often signifying key changes in state. There are no events emited by this function
Recent Transactions Calling This Function
This returns the latest 20 times that this function was called directly by a wallet or internally by another contract.
Looking for transactions where this function was called...