Documentation

Learn how MaxFi saves you money on every rebalance through zero-swap repositioning.

What is MaxFi?

MaxFi is an automated concentrated liquidity management protocol built on Base for Uniswap V3, Aerodrome, and PancakeSwap. It uses a novel zero-swap rebalancing technique that eliminates swap fees, slippage, and MEV attacks.

When your concentrated liquidity position goes out of range, traditional rebalancers swap tokens to reposition—costing you fees and exposing you to sandwich attacks. MaxFi does it differently.

We create single-sided positions at the current price boundary and let the pool's natural trading activity rebalance your position while you earn fees. Zero swaps. Zero slippage. Zero MEV.

"Traditional rebalancing swaps at the worst possible moment—right after an extreme move. MaxFi waits for the market to come back, letting the AMM naturally rebalance you at better prices while you earn fees."

The Problem with Traditional Rebalancing

When your position goes out of range, traditional rebalancers immediately swap your tokens. This happens at the worst possible price—right after an extreme move.

Traditional Rebalancing Flow

Price moves up, exits range
You're holding 100% Token B
SWAP at the high price
Buy Token A back at the top
Create new 50/50 position
❌ IL permanently locked in

That swap crystallizes your loss permanently. You're buying Token A back at the top, after the AMM already sold it on the way up. If price reverses, you've already lost.

What Traditional Rebalancing Costs You

Swap fees0.3% - 1%
Slippage0.5% - 5%
MEV sandwich attacks0.2% - 1%
Crystallized IL1% - 3%
Total per rebalance2% - 6%

How MaxFi Rebalancing Works

Instead of swapping, MaxFi creates a single-sided position at the price boundary using only the tokens you already have.

MaxFi Rebalancing Flow

Price moves up, exits range
You're holding 100% Token B
NO SWAP
Reposition range to touch current price
Wait for price to drift back
AMM naturally rebalances you
+ Earn fees the whole time
✓ IL deferred, often reduced

As the market trades back through your range, the AMM naturally rebalances you—at better average prices. And you're earning trading fees the entire time.

Visual Comparison

Traditional

Price ──────────────────►
        ┌─────────┐
        │ Range 1 │ ← Price exits
        └─────────┘
                    ↓ SWAP at high
              ┌─────────┐
              │ Range 2 │ ← New position
              └─────────┘

❌ IL locked in at the swap

MaxFi

Price ──────────────────►
        ┌─────────┐
        │ Range 1 │ ← Price exits
        └─────────┘
                    ↓ NO SWAP
        ┌─────────┐
        │ Range 2 │ ← Edge at price
        └─────────┘
              ◄──── Price returns

✓ AMM rebalances naturally

What MaxFi Costs You

Swap fees$0
Slippage$0
MEV sandwich attacks$0 (impossible)
Protocol fee0.06%
Total per rebalance~0.06%

Quick Start Guide

1

Connect your wallet

Click the Connect button in the top right corner.

2

Choose a pool

Select from Uniswap V3, Aerodrome, or PancakeSwap pools.

3

Configure your position

Set range width, rebalance delay, auto-rebalance, and auto-compound.

4

Deposit and earn

Approve your tokens and deposit. Start earning fees immediately.

IL Crystallization vs Deferral

This is the key difference between traditional rebalancing and MaxFi.

Crystallization (Traditional)

When you swap at an extreme price, you lock in your loss permanently. Even if price reverses immediately after, you've already:

  • • Sold low or bought high
  • • Paid swap fees
  • • Lost to MEV
  • • Made the IL permanent

Deferral (MaxFi)

MaxFi defers the rebalancing to the market itself. As price moves back through your range:

  • • You DCA at gradually improving prices
  • • No swap fees or MEV
  • • Earn trading fees while waiting
  • • IL is reduced, not crystallized

The Math

Traditional rebalance at +5% price move:

  • • You swap at the extreme price
  • • If price drops 3% back, you've lost that 3% recovery
  • • Net: ~5% divergence loss locked in

MaxFi rebalance at +5% price move:

  • • You reposition without swapping
  • • If price drops 3% back, AMM rebalances you gradually
  • • Average entry at ~3.5% above start (not 5%)
  • • Net: ~3.5% divergence loss + fees earned

The Mean Reversion Advantage

Price movements often mean-revert, especially in the short term. MaxFi is designed to benefit from this natural market behavior.

How MaxFi Benefits

  • 1.Not panicking at extremes — No forced swap at the worst price
  • 2.Letting the market come back — Patient repositioning at the boundary
  • 3.Earning fees while waiting — Your capital is always working

The Caveat

If price keeps trending in one direction without reverting, MaxFi doesn't save you—you'll keep repositioning. But you're no worse off than traditional, and in the more common case of mean reversion, you come out significantly ahead.

Auto-Compound

Automatically reinvest your trading fees to grow your position—without any swaps or extra cost.

Smart Fee Splitting

When auto-compound is enabled, MaxFi intelligently splits your accrued fees during rebalance:

  • Matching-token fees get compounded into your new position
  • Non-matching fees go directly to your wallet as cash

This is smarter than 50/50—we compound what can be used without swapping, and cash out the rest.

Example: Price Drops

Position is now 100% WETH

Accrued: 0.05 WETH + 100 USDC
WETH fees → Compounded
USDC fees → Your wallet

Example: Price Rises

Position is now 100% USDC

Accrued: 0.05 WETH + 100 USDC
USDC fees → Compounded
WETH fees → Your wallet

Auto-Compound ON

Matching-token fees reinvest automatically. Position grows over time.

Best for: Long-term growth

Auto-Compound OFF

All trading fees sent to your wallet during rebalances.

Best for: Regular income

Auto-Rebalance vs Manual

Auto-Rebalance (Enabled)

When your position goes out of range, MaxFi automatically repositions after your configured delay.

Best for: Passive LPs who want hands-off management

Manual (Disabled)

Your position won't auto-rebalance. Use "Rebalance" when ready, or let it act as a limit order.

Best for: Active traders, limit order strategies

Fee-Earning Limit Orders

MaxFi can act as a limit order that pays you while you wait.

  1. 1. Deposit a single token (e.g., USDC below current price)
  2. 2. Disable auto-rebalance
  3. 3. As price enters your range, you accumulate the other token
  4. 4. You earn trading fees the entire time

Unlike a regular limit order, you get paid for providing liquidity. And since there's no rebalance, there's no protocol fee—it's completely free.

Buy the Dip

Deposit USDC below current ETH price. As ETH drops into your range, you accumulate ETH—while earning fees.

Take Profits

Deposit ETH above current price. As ETH rises into your range, you sell into USDC—while earning fees.

Range Width

Range width determines how concentrated your liquidity is around the current price.

Narrow (0.5% - 5%)Higher fees, more rebalances
Medium (5% - 15%)Balanced approach
Wide (15% - 50%)Lower fees, fewer rebalances

Rebalance Delay

How long to wait after going out of range before auto-rebalancing. This prevents unnecessary rebalances during temporary price spikes.

Short (1 - 6 hours)Stay in range more often
Medium (12 - 24 hours)Filter out noise
Long (2 - 7 days)Only rebalance on sustained moves

Choosing Your Settings

Our defaults are optimized for strong, consistent returns across market conditions. But you can experiment—use the backtester to find settings that work for your strategy.

Recommended Starting Settings (365-Day Backtests)

PoolRangeDelayReturn*
cbBTC/USDC3%6-8h78-91%
WETH/USDC1-5%2-14h42-178%
WETH/cbBTC2.5%8h76-79%

*Results from 365-day backtests during a volatile bear market. Experienced users often achieve higher returns with custom settings.

How Settings Affect Returns

  • Wider range = Fewer rebalances, less fees earned, less IL exposure
  • Narrower range = More rebalances, more fees earned, more IL exposure
  • Longer delay = More fees earned while OOR, but longer time out of optimal range
  • Shorter delay = Faster repositioning, but potentially more protocol fees
  • Auto-Compound ON = Position grows automatically, best for long-term
  • Auto-Compound OFF = All fees to wallet, best for income

Backtest Simulator

Before depositing real funds, use our backtest simulator to see exactly how MaxFi would have performed. Our backtests show 42-178% annual returns across pools—even during one of the worst years for LPs.

Industry-Leading Accuracy

Our backtester doesn't just use price data—it uses real historical APY data derived from daily volume, TVL, and fee data for each pool. This is something no other protocol offers.

365 Days
of historical data
Hourly
price resolution
Daily
pool APY snapshots

What the Simulator Shows You

Realized APR — Annualized return based on the backtest period
Total Return % — Percentage gain/loss over the period
Dollar Gain — Actual profit in USD terms
Time in Range — How often you were earning fees
Rebalance Count — How many rebalances occurred
Protocol Fees — Total fees paid to MaxFi
Withdrawn Fees — Trading fees sent to your wallet
Price Movement — Market context for the period

Simulator Parameters

Range Width (0.5% - 5%)

How wide your liquidity range is. Narrower = more fees but more rebalances.

Rebalance Delay (1 - 24 hours)

How long to wait out-of-range before rebalancing. Longer = fewer rebalances but more time not earning.

Time Period (7 - 365 days)

Historical window to simulate. We have a full year of data—test across bull runs, crashes, and everything in between.

Compound Percentage (0% - 100%)

How much of matching-token fees to reinvest. 100% = full auto-compound.

Important Disclaimer

Backtests use historical data and cannot predict future results. Market conditions change, and past performance is not indicative of future returns. Use the simulator to understand how different settings behave, not as a guarantee of returns.

Cost Comparison

See how MaxFi stacks up against traditional LP management.

FactorTraditionalMaxFi
Swap at rebalanceYes (at extreme)No
IL crystallizationImmediateDeferred
Swap fees0.05% - 1%None
Slippage0.5% - 5%None
MEV exposureHighImpossible
Fee earning during rebalancePausedContinuous
Mean reversion benefitLostCaptured
Auto-compound costSwap feesFree
Protocol fee0.5% - 2%0.06%
1-2%
Savings per rebalance cycle (compounding over time)

Scenario Analysis

How MaxFi performs in different market conditions.

ScenarioTraditionalMaxFi
Price continues trendingSwap loss + new positionReposition, no swap loss
Price reverses (mean reversion)Locked in lossAMM rebalances at better prices
Price oscillatesMultiple swaps at extremesNatural rebalancing via trading

Fee Structure

You only pay when MaxFi actively repositions your liquidity. Everything else is free. The 0.06% rebalance fee covers operational costs—primarily the gas fees for Chainlink Keepers that automatically monitor and manage positions 24/7.

ActionFee
DepositFree
WithdrawFree
Harvest FeesFree
Auto-CompoundFree
Limit Orders (no rebalance)Free
Rebalance0.06%

Referral Program

Earn 0.01% of every rebalance from users you refer—forever.

How It Works

1

Get your referral link

Visit the Refer page to generate your unique link.

2

Share with others

Send to friends, communities, or social media.

3

Earn forever

Get 0.01% of every rebalance they do—permanently.

Fee Distribution

When a rebalance occurs (0.06% protocol fee):

Protocol0.05% (5/6)
Referrer0.01% (1/6)

Important: Past performance does not indicate future results. IL reduction depends on mean-reverting market conditions. Our contracts have undergone a comprehensive security review which you can read in full. As with all DeFi, please understand the risks before depositing.