Skip to content
CosmosPool

CosmosPool

Simplifying Single-Sided Liquidity Provision for DeFi - CosmosPool is a decentralized liquidity provision system built on Unichain that enables users to deposit single-sided assets (e.g. WETH or USDC)

Created on 1st March 2025

•

CosmosPool

CosmosPool

Simplifying Single-Sided Liquidity Provision for DeFi - CosmosPool is a decentralized liquidity provision system built on Unichain that enables users to deposit single-sided assets (e.g. WETH or USDC)

The problem CosmosPool solves

CosmosPool is a decentralized liquidity provision system designed to simplify the process of providing liquidity to Concentrated Liquidity Market Makers (CLMMs) like Uniswap V3. Traditional CLMMs require users to deposit both tokens in a trading pair within a specific price range, which can be complex and inaccessible for many users. CosmosPool solves this by enabling single-sided deposits, automatically matching users with complementary deposits, and managing liquidity provision on their behalf.

The system is built on Unichain, a blockchain optimized for DeFi applications, and integrates with Uniswap V3 for liquidity calculations and pool interactions. By abstracting away the technical complexities of dual-sided deposits and price range management, CosmosPool makes liquidity provision more accessible, efficient, and user-friendly.

The project architecture and development process

Core Functionality:

1.Single-Sided Deposits:

Users can deposit a single token (e.g., WETH or USDC) into the LiquidityManager smart contract.

The contract tracks deposits and matches users with complementary providers.

2.Automated Matching:

The system matches users with complementary deposits (e.g., a WETH depositor with a USDC depositor).

3.Liquidity Provision:
The matched tokens are deposited into a Uniswap V3-style pool on Unichain.

Uniswap's concentrated liquidity formula is used to calculate the optimal liquidity provision.

Key Implementation Details:

Smart Contracts:

LiquidityManager.sol:

Handles deposits, matching, and withdrawals.

Emits events (UsdcDeposited, WethDeposited, LiquidityMatched) to track user interactions.

Integrates with Uniswap's NonfungiblePositionManager for liquidity provision.

MockNonFungibleToken.sol:

Simulates Uniswap's position manager for testing.

Includes functions like mint and withdrawTokens to mimic real-world behavior.

Uniswap Integration:

The system uses Uniswap's concentrated liquidity formula to calculate optimal liquidity

Product Integrations

Uniswap, Unichain, Hardhat, Web3.js, Ethers.js, Coin Gecko API

Key differentiators and uniqueness of the project

Key Features:

Single-Sided Deposits:

Users can deposit a single token (e.g., WETH or USDC) without needing to hold both assets in a trading pair.

Automated Matching:
The system matches users with complementary deposits, ensuring balanced liquidity provision.

Uniswap Integration:
Leverages Uniswap's proven liquidity formulas and infrastructure for optimal liquidity provision.

Mock Testing Environment:
Includes a mock position manager for safe and efficient testing without deploying to mainnet.

Dynamic Reward Distribution:
Rewards are distributed based on a fixed ratio (e.g., 60/40 favoring volatile token providers).

Unique Aspects:
Simplified User Experience: By abstracting away the complexities of dual-sided deposits and price range management, CosmosPool makes liquidity provision accessible to a wider audience.

Unichain Deployment: Optimized for Unichain, a blockchain designed for DeFi applications, ensuring high performance and low transaction costs.

Scalability: Designed to support additional tokens and integrate with other DEXs in the future.

Comparison with Similar Projects:

Unlike traditional CLMMs, CosmosPool eliminates the need for users to hold both tokens in a trading pair.

Compared to other single-sided liquidity solutions, CosmosPool integrates directly with Uniswap V3, leveraging its proven infrastructure and liquidity formulas.

The inclusion of a mock testing environment ensures a safer and more efficient development process.

Trade-offs and shortcuts while building

Mock Position Manager:

Used a mock implementation of Uniswap's position manager for testing, which lacks some real-world complexities but allows for safe and efficient development.

Hardcoded Price Range:
Initially, the price range is fixed at ±10% of the current price for simplicity. This will be expanded to allow customizable ranges in future updates.

Tracks Applied (2)

DEFI, NFTS + GAMING

CosmosPool directly enhances the DeFi ecosystem by simplifying liquidity provision in Concentrated Liquidity Market Make...Read More

DeFi Innovation on Unichain

CosmosPool is designed specifically to innovate within the Uniswap ecosystem, particularly on Unichain. It extends the f...Read More
Uniswap

Uniswap

Discussion

Builders also viewed

See more projects on Devfolio