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
  • โš™๏ธ Responsibilities
  • ๐Ÿ’ธ Fee Collection
  • ๐Ÿ” Security & Admin
  • ๐Ÿง  Design Philosophy
Export as PDF
  1. ๐Ÿงฑ Cabal Protocol: Contract Overview

๐Ÿ” CabalV4LiquidityLocker

The CabalV4LiquidityLocker brings secure time-locking and fee collection mechanics to Uniswap V4 positions, adapting to V4's new architecture.

It supports V4-specific Currency types, integrates with the V4 hook mechanism, and manages all V4 LP NFTs locked through the platform.


โš™๏ธ Responsibilities

  • Locks Uniswap V4 position NFTs on launch

  • Tracks custom Currency types for both tokens in the pool

  • Enforces strict unlock times (default: 5 years)

  • Enables secure fee extraction using the V4 modifyLiquidities() pattern

  • Distributes earnings to users and the protocol


๐Ÿ’ธ Fee Collection

  • Uses the V4 DECREASE_LIQUIDITY + TAKE_PAIR actions to collect

  • All collected fees are split:

    • 50% to the position owner

    • 50% to the protocol (configurable)

  • Supports ETH and ERC-20 based Currency values

  • Users can call collectFees(tokenId) or collectAllUserFees()


๐Ÿ” Security & Admin

  • Only authorized V4 helper contracts can initialize positions

  • Locker verifies NFT ownership before accepting or unlocking

  • Owner can recover stuck ETH or ERC-20 tokens using emergencyRecover*() functions


๐Ÿง  Design Philosophy

  • LP tokens remain non-withdrawable until unlockTime passes

  • Supports complex V4 flows while keeping usage simple

  • Emits detailed logs: FeesCollected, PositionLocked, PositionUnlocked


Both lockers are essential to The Cabal's decentralized token launch flow โ€” bringing security, transparency, and trust to every deployment on Base.

Previousโš™๏ธ CabalV4HelpersNext๐Ÿงช V4LiquidityHelpers

Last updated 8 days ago