Deploying a Token
Tokens are deployed through the Clanker contract using thedeployToken function:
Rewards Configuration
Rewards deployed through the launchpad are split as follows:- 20% to Clanker
- Up to 80% to the Creator (set with the
creatorRewardparameter) - Remaining to the Interface (can be 0%)
creatorAdmin: The address that will manage the creator’s locked token supply, creator’s portion of the trading fee rewards, the token’s metadata, and the receiver of the initial supply purchase (the “creator buy”)creatorRewardRecipient: The address that will initially receive the creator’s portion of the trading fee rewardsinterfaceAdmin: The address that will manage the interface’s trading fee rewardsinterfaceRewardRecipient: The address that will initially receive the interface’s portion of the trading fee rewards
Token Configuration
The following parameters are required for token creation:name: Token namesymbol: Token symbolimage: Token imagemetadata: Token metadata (creatorAdmincan update this)context: Additional token context containing information about who deployed the token (immutable)salt: Address salt value to allow for token address customizationoriginatingChainId: Chain ID where the token’s supply is deployed
Tokens will be deployed with a fixed supply of 100,000,000,000.
Vault Configuration (Optional)
Users can lock a portion of the token supply in a vault with these parameters:vaultDuration: Lock duration (minimum 30 days)vaultPercentage: Percentage of supply to lock (maximum 30%)
creatorAdmin address will have administrative control over the locked tokens in the ClankerVault contract.
Pool Configuration
After token creation, a 1% fee tiered Uniswap V3 Pool is deployed. The remaining non-vaulted token supply is then added as a single-sided liquidity position. Required parameters:tickIfToken0IsNewToken: Initial token price in the poolpairedToken: Token to pair with the new token
Initial Swap Configuration (Optional)
Users can perform an initial swap (a creator buy) using ETH (sent viamsg.value). For non-WETH paired tokens, the contract first internally swaps ETH to the paired token (ETH -> pairedToken -> new token). Required parameters:
msg.value: ETH amount for the swappairedTokenSwapAmountOutMinimum: Minimum amount of paired tokens to receive if ETH is not the paired tokenpairedTokenPoolFee: Pool fee for the ETH -> pairedToken swap
creatorAdmin address receives the new tokens purchased with the ETH sent.