Skip to content

Conversation

@SynnekOG
Copy link

PR Description

Summary

This PR introduces LiquidityManagerV2 and integrates Uniswap V4 pool manager while enhancing existing factory and token contracts.
It also standardizes all contracts and tests by downgrading the compiler version from 0.8.26 to 0.8.24 for stability and compatibility.

Key Changes

  • LiquidityManagerV2

    • Added constructor with strict validation of dependencies.
    • Added support for:
      • Uniswap V4 pool manager.
      • Vesting contract for liquidity providers.
      • Factory contract address (authorized to initialize pools).
      • Protocol fee recipient.
  • FactoryTokenContractV2

    • Added nextTxId for sequential transaction tracking.
    • Added totalTokensCreated counter.
    • Declared addresses for external contracts:
      • MultiSigContract
      • LiquidityManager
      • VestingContract
      • USDC
    • Refactored transaction handling with improved validation and revert-based error handling.
    • Improved liquidity provisioning flow and tracking.
  • FactoryTokenContract (legacy)

    • Updated modifiers and validations to use revert over require.
  • TokenContract

    • Refactored mint and burn to use custom errors with revert.
  • MultiSigContract

    • Strengthened access control modifiers with custom errors.
    • Improved signer validation and duplicate signature checks.
  • VestingContract

    • Enhanced validation with explicit reverts for vesting lifecycle (set, release, revoke).
  • Scripts & Tests

    • Updated all pragma solidity declarations to ^0.8.24.
    • Adjusted configuration in foundry.toml and foundry.lock.

Motivation

  • Provide a modular liquidity management system compatible with Uniswap V4.
  • Track memecoin creation lifecycle more robustly.
  • Ensure reproducible builds and alignment with external dependencies by standardizing Solidity version.

Breaking Changes

  • Contracts previously compiled with 0.8.26 are now strictly pinned to 0.8.24.

Next Steps

  • Expand unit and integration tests for LiquidityManagerV2.
  • Deploy updated contracts to staging environment for end-to-end verification.

@SynnekOG SynnekOG self-assigned this Sep 12, 2025
@SynnekOG SynnekOG added documentation Improvements or additions to documentation enhancement New feature or request labels Sep 12, 2025
Copy link
Contributor

@Neros0 Neros0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@Neros0
Copy link
Contributor

Neros0 commented Sep 12, 2025

We should clean CI also!

@Neros0 Neros0 merged commit c1f160b into main Sep 12, 2025
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants