Skip to content
Prabal Pratap Singh
All work

DeFi · LP automationat Warlands2025Live

CopyPool

Uniswap V4-native LP automation at Warlands: auto-range, compound, and exit.

Visit copypools.com

Full Stack Blockchain Lead, Warlands

At a glance

90 automations

  • Live: 90 automations running and $28.5K in fees earned for LPs (live indexer)
  • Contracts deployed on Base mainnet behind upgradeable proxies
  • Foundry fuzz and invariant tests; about 30% lower gas

What it is

Architect a Uniswap V4–native LP automation platform (Revert Finance–class): auto-range, compounding, and exits.

Why it exists

Concentrated liquidity only earns fees while the price stays in range. Managing that by hand means watching charts and paying gas at the wrong moments, so most LPs either over-manage or give up.

How it works

Each automation is its own contract: V4Utils for atomic swap-and-mint and liquidity changes, V4Compoundor for fee compounding, V4AutoRange for rebalancing and V4AutoExit for stop-loss and take-profit. A Ponder indexer follows pool and position events, backend monitors decide when a rule fires, and the contracts execute it on-chain. The same indexed state powers the Next.js dashboard.

Decisions worth explaining

One contract per automation, each behind a UUPS proxy

Splitting range, compound and exit logic keeps each contract small enough to test and review on its own, and lets one be upgraded without touching the others.

Detect off-chain, execute on-chain

Watching every pool on-chain would be expensive. The indexer and monitors do the watching; the chain only sees a transaction when a user's rule actually fires.

Atomic swap and mint

Entering a V4 position usually needs a swap first. Doing both in one transaction means a user never ends up holding half-swapped tokens if something fails in between.

Results

  • Live at copypools.com — auto-range, compounding, and exits for Uniswap V4 LP positions.
  • Deployed on Base mainnet; V4AutoRange proxy at 0x58ddfb0dB22aF4026f6034365dFBa65F5cb563Ca (basescan.org).
  • Contracts cover mint, rebalance, migrate, and close; Foundry fuzz and invariant tests; about 30% lower gas.
  • Ponder/GraphQL indexing feeds automation and the Next.js dashboards. Stack: Solidity, Uniswap V4, Hardhat, Foundry, Ponder, React.

Stack

SolidityUniswap V4HardhatFoundryPonderNext.jsReactGraphQL

Want something like this built?

Open to roles & contracts. Remote · IST with US/EU overlap.

Email me