ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified finance Safety 2/5

rebalance-position

Rebalance an out-of-range Uniswap V3/V4 LP position by closing the old position and opening a new one centered on the current price. Handles fee collection, removal, range calculation, and re-entry in a single workflow. Use when a position is out of range and needs adjustment.

Why use this skill?

Optimize your Uniswap V3 and V4 liquidity positions with OpenClaw. Automatically rebalance out-of-range LP positions to maximize fee earnings and capital efficiency.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/wpank/rebalance-position
Or

What This Skill Does

The rebalance-position skill is a sophisticated automation tool designed for liquidity providers on Uniswap V3 and V4. When a concentrated liquidity position drifts outside of its established tick range, it effectively stops generating protocol fees, turning your investment into dead capital. This skill automates the entire corrective lifecycle: it identifies out-of-range positions, calculates the optimal new price range based on current market dynamics, harvests accumulated rewards, closes the stale position, and opens a new, optimized one centered around the current spot price. By streamlining these complex steps, it minimizes manual management and maximizes fee-earning potential.

Installation

To integrate this skill into your environment, run the following command in your terminal: clawhub install openclaw/skills/skills/wpank/rebalance-position

Use Cases

  • Proactive Management: Automatically detect when market volatility pushes your liquidity out of bounds.
  • Fee Optimization: Ensures your capital is consistently deployed in the most active price ranges where volume (and thus fee revenue) is highest.
  • Strategic Rebalancing: Transition from a static range to a more volatile-appropriate width (narrow, medium, or wide) based on real-time pool activity data.
  • Portfolio Maintenance: Ideal for users managing multiple liquidity pairs across different assets who need a unified, automated interface to handle upkeep without manually tracking every pool price.

Example Prompts

  • "My WBTC/USDC position has stopped earning fees; can you rebalance it?"
  • "I have an out-of-range LP position on Ethereum, please move the range to be centered on the current price."
  • "Search for all my out-of-range positions and let me know if it's worth the gas fees to rebalance them."

Tips & Limitations

  • Gas Awareness: Rebalancing involves multiple transactions (collecting fees, burning/minting positions). The skill includes a cost-benefit calculation to prevent users from spending more on gas than the projected fee revenue over a 30-day window.
  • Range Selection: While the skill defaults to 'Auto-optimal', users can manually specify range widths. Narrow ranges yield higher potential APY but increase the likelihood of going out of range again quickly.
  • Safety: Always review the suggested gas costs before authorizing the transaction in your wallet interface. Ensure you have sufficient network tokens for transaction fees.

Metadata

Author@wpank
Stars919
Views1
Updated2026-02-12
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-wpank-rebalance-position": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#defi#liquidity#uniswap#yield#blockchain
Safety Score: 2/5

Flags: network-access, external-api