The Cabal Docs
  • The Cabal - Token Launch Platform
  • โš™๏ธ How It Works
  • ๐ŸŽ Claiming Creator Rewards
  • ๐Ÿ’ฐ Protocol Fees
  • ๐Ÿงฑ Cabal Protocol: Contract Overview
    • ๐Ÿ’  CabalToken
    • ๐Ÿญ CabalFactory
    • ๐Ÿ› ๏ธ CabalV3Helpers
    • ๐Ÿ” CabalLiquidityLocker
    • โš™๏ธ CabalV4Helpers
    • ๐Ÿ” CabalV4LiquidityLocker
    • ๐Ÿงช V4LiquidityHelpers
    • ๐Ÿ“ Latest Deployment Addresses (Base Mainnet)
  • ๐Ÿค Stay Connected
Powered by GitBook
On this page
  • CabalFactory
  • โš™๏ธ Responsibilities
  • ๐Ÿงช Deployment Logic
  • ๐Ÿ› ๏ธ Functions Overview
  • ๐Ÿ“Œ Notes
Export as PDF
  1. ๐Ÿงฑ Cabal Protocol: Contract Overview

๐Ÿญ CabalFactory

CabalFactory

The CabalFactory contract is the main entry point for launching tokens on The Cabal platform โ€” supporting both Uniswap V3 and V4 deployments.

It handles everything from token creation to liquidity deployment, locking, and developer buy functionality โ€” all in one transaction.


โš™๏ธ Responsibilities

  • ๐Ÿช™ Deploys new ERC-20 token contracts with fixed 1B supply

  • ๐Ÿ’ง Adds liquidity to Uniswap V3 or V4 automatically

  • ๐Ÿ”’ Locks LP using custom LiquidityLocker contracts

  • ๐ŸŽฏ Supports Dev Buy (developer ETH buy-in at launch)

  • ๐Ÿงพ Stores full deployment metadata (token name, symbol, IPFS image, links, etc.)

  • ๐Ÿ”“ Renounces token ownership immediately

  • ๐Ÿ” Emits a detailed TokenDeployedWithLiquidity event for indexing


๐Ÿงช Deployment Logic

When launching a token via the CabalFactory:

  1. A new CabalToken is deployed (1B supply).

  2. A portion of the supply is added to liquidity (either V3 or V4), paired with ETH if needed.

  3. Liquidity is locked automatically via the locker contract.

  4. The remaining tokens (if any) are sent to the deployer.

  5. If a Dev Buy amount is specified, the platform automatically purchases the token using ETH on behalf of the deployer.

  6. Deployment metadata is saved on-chain.

  7. Ownership of the token contract is renounced for decentralization.


๐Ÿ› ๏ธ Functions Overview

Function
Description

deployV3TokenWithLiquidity(...)

Deploy a token with Uniswap V3 liquidity, LP lock, and optional Dev Buy

deployV4TokenWithLiquidity(...)

Deploy a token with Uniswap V4 liquidity and optional Dev Buy

getDeployedTokensCount()

Returns the total number of tokens launched

getTokenInfo(index)

Returns metadata about a specific deployed token

getTokensByDeployer(address)

Returns all token addresses deployed by a given user

getAllTokens(offset, limit)

Returns paginated token deployment metadata

isTokenDeployedByFactory(address)

Checks if a token was launched via the factory

updateV3Helpers(...)

(Dev) Update the V3 helpers contract address

updateV4Helpers(...)

(Dev) Update the V4 helpers contract address

updateLiquidityLocker(...)

(Dev) Update the LP locker contract address

emergencyRecoverETH()

(Dev) Withdraw stuck ETH from the contract


๐Ÿ“Œ Notes

  • Tokens are locked to ensure trust and safety.

  • Ownership is renounced for full decentralization.

  • Supports both Uniswap V3 (current standard) and V4 (next-gen) launch styles.


Previous๐Ÿ’  CabalTokenNext๐Ÿ› ๏ธ CabalV3Helpers

Last updated 8 days ago

The system is designed for seamless UI integration with

Need help? Join the community: Launch instantly:

https://thecabal.app
Telegram Portal
The Cabal Buy Bot