Gamma

Gamma automates liquidity management and supports limit orders and perpetual trading vaults

Gamma automates liquidity positions on decentralized exchanges and supports limit orders and perpetual trading vaults. Liquidity providers supply tokens that other users swap, receiving a share of the pool’s trading fees. Its LP vaults manage the price ranges where that capital participates and reinvest accrued fees. Its limit order hook uses narrowly defined liquidity positions to execute trades at selected price levels. Perpetual vaults run trading strategies on a separate derivatives platform. Each function delegates a different task: range management, order execution, or portfolio trading. The costs and risks follow those tasks, so an LP fee figure doesn’t describe every product’s performance.

Last updated
Key takeaway: Automatic range management leaves an LP exposed to changing token balances and losses relative to holding the original assets.

Reading a liquidity vault’s range reset

A classic liquidity vault resets its base and limit ranges when its manager executes a triggered rebalance. Start with its current positions and pool price to distinguish changing settings from the rules that govern fee eligibility.

  • Match the vault to its network, token pair, and underlying liquidity pool.
  • Compare the pool’s live price with the bounds of both managed positions.
  • Treat price and asset-ratio triggers as strategy settings, without assuming a fixed timetable.
  • Identify which positions currently contain the pool price and can participate in swaps.
  • Confirm a Rebalance event and the resulting position bounds in the vault’s on-chain records.

When a trigger leads to an executed range reset, the contract replaces its previous ranges with new ones. A confirmed event and changed bounds show that reset. Repeat the price comparison using those new bounds; one position’s range status doesn’t describe every position in the vault. A price move alone doesn’t establish that the manager has executed a rebalance.


LP strategies distribute capital across different price ranges

The strategy determines where a vault supplies liquidity and how that distribution responds to market movements. Gamma’s LP rebalancing logic adjusts token quantities through limit liquidity positions without executing market swaps.

Base and limit positions

Classic vaults on Uniswap v3 and Algebra Integral use a base position alongside a limit position. Depositors hold fungible LP shares that represent their interest in the vault’s assets. Its token balances change as swaps move the pool price, so withdrawal quantities can differ from the original deposit. The asset ratio also affects the amounts that a dual-asset deposit requires. Entry may be single-asset or dual-asset where the selected vault and integration support that method.

Wide and narrow dynamic ranges make different trade-offs between concentrated capital and coverage of price movements. Narrower liquidity can earn more fees per unit of capital while active. Greater volatility can increase divergence losses enough to outweigh that advantage. Stable strategies target relatively stable trading relationships; pegged-price strategies position liquidity around an asset’s net asset value. A market price that diverges from that value can leave pegged-price liquidity outside its range.

Multi-position liquidity shapes

Uniswap v4 vaults can distribute liquidity across multiple positions. Gamma’s distributions include exponential, Gaussian, triangle, uniform, and order-book shapes. Exponential and Gaussian shapes concentrate more capital near the price; uniform allocation spreads it evenly within the selected range. The order-book shape places peaks around the price to suit movement followed by mean reversion. Fee income still depends on trading activity inside the supplied ranges. A move into a thinly supplied part of the distribution reduces the capital available to earn fees there.


How do Gamma’s limit orders execute?

Gamma’s limit orders execute through swap hooks attached to supported Uniswap v4 pools. A hook is a contract that runs at defined points during pool activity. Here, swap activity triggers logic that processes eligible liquidity positions.

Single-price and scale orders

A single-price order uses a single-tick liquidity position, where a tick identifies a discrete price boundary. A scale order distributes multiple limit orders between starting and ending prices. The size skew controls how order sizes vary across that interval. In the limit order interface, a buy limit sits below the current price, and a sell limit sits above it. Pool-specific tick spacing constrains the price boundaries that the contract can accept.

Hook execution and keeper follow-up

The system limits how many positions a swap can process and provides keeper handling for excess eligible positions. A keeper is an authorized executor that handles that follow-up work. Orders require qualifying pool activity; a quoted target alone doesn’t establish execution. Each order must meet its input token’s configured minimum or creation fails, and processing capacity follows the manager’s configured execution limit.


Perpetual vaults apply trading signals on Hyperliquid

Gamma’s perpetual vaults run trading strategies on Hyperliquid, where perpetual contracts have no expiry. Hedge uses continuous scores to manage long and short positions with a market-neutral objective. Switch changes direction through a binary signal, while Shift adjusts exposure through a continuous score. Sentiment Edge and Momentum Edge use their respective signals in portfolios that target market neutrality. Funding payments, execution slippage, and leverage affect returns. Balanced exposure doesn’t remove losses from inaccurate signals or adverse funding, and leverage amplifies losses from an unfavorable move.


Does rebalancing remove impermanent loss?

Rebalancing doesn’t remove impermanent loss, the shortfall that providing liquidity can create relative to holding the same starting assets. An automated strategy changes the allocation and location of liquidity; market movements still affect its value. Fees can offset that shortfall, and they can also fall short of it. Comparing only the fees earned leaves out the value of the remaining tokens.

A concentrated liquidity position earns no swap fees while the pool price stays outside its range. Previously accrued fees don’t disappear merely because the price leaves that range. Other positions in the same vault may remain active. Incentive rewards follow their program’s rules, so their eligibility can differ from the range condition that governs swap fees.


Fees, rewards, and control over deposited tokens

A liquidity position combines several economic components: underlying assets, earned swap fees, and any separate incentives. Their accounting determines what an earnings figure actually measures.

Fee shares and performance figures

Gamma takes a portion of the fees that an LP vault earns. That share is distinct from the pool’s swap fee and the network gas that transactions consume. The vault’s configured fee determines the applicable management share. Fee-based annual percentage rate, or APR, annualizes fee production relative to total value locked. The LP fee APR calculation excludes impermanent loss, so that figure doesn’t represent the full change in portfolio value.

Limit order creation has no separate creation fee in the hook system; it still consumes gas. Active order positions can also earn swap fees. The hook deducts a configured share of those fees when they’re collected. Perpetual trading adds its own execution costs and funding payments.

Gamma: Fee shares and performance figures - illustration
Fee shares and performance figures.

View image file

LP incentives and GAMMA staking

Gammachef rewards require staking eligible LP tokens, while Merkl can distribute incentives without that staking step. Each program determines which holdings qualify. Native GAMMA staking has a different purpose: participation in fees across managed LP vaults. The V1 staking model issues xGAMMA shares in a pool that accumulates fees through GAMMA purchases. An xGAMMA balance represents that staking pool, while an LP share represents assets in a particular liquidity vault.

Withdrawal rights and contract exposure

LP vaults hold deposited assets in smart contracts, with withdrawal rights tied to their shares. Automation uses off-chain strategy decisions and on-chain execution, adding a dependency on the management system that submits rebalances. Non-custodial ownership doesn’t remove exposure to contract defects or the underlying tokens. A withdrawal returns the assets attributable to the redeemed shares at that time. Its token mix can change with pool trading and strategy adjustments, even when the number of LP shares stays constant.

Before you start with Gamma

Can I cancel a Gamma limit order before execution?

An open Gamma limit order can be cancelled before it executes. Cancellation also collects the creator’s share of the fees that the position earned while active. The system supports individual and batch cancellation. Once an order has executed, its creator can claim the proceeds; cancelling an open order and collecting an executed order are different operations.

Where do proceeds from an executed limit order remain before claiming?

Executed limit order proceeds remain in Uniswap’s PoolManager until a claim releases them. Execution removes the liquidity position without immediately transferring its assets to the creator’s wallet. Separating those operations avoids adding a token transfer to the triggering swap. The claim collects the proceeds and the creator’s share of position fees.

Can I withdraw LP assets if the Gamma interface isn’t available?

Classic Gamma LP vaults support withdrawal through their smart contracts without relying on the web interface. The correct network, vault contract, and share holder determine which position can be redeemed. LP tokens that sit in a staking contract need the applicable unstaking operation. Contract methods and token units differ across versions.

What should I check when staked LP tokens disappear from my wallet balance?

Staking can move LP tokens into the rewards contract while preserving your recorded staking position. A wallet’s ordinary token list may therefore omit them. The relevant rewards contract records the stake and its withdrawal rights. An empty wallet balance alone doesn’t show that the underlying liquidity has disappeared.

Do legacy V1 NFT vaults accept new deposits?

Legacy V1 NFT vaults support withdrawals for existing deposits and don’t accept new ones. Their withdrawal requirements differ from later tokenized LP vaults, including the requirement to hold the relevant NFT in the depositing wallet. A position in that older system doesn’t automatically become a deposit in a newer vault.

When does a Gamma LP incentive campaign end?

Each LP incentive campaign has its own configured duration, which determines when its scheduled rewards end. The campaign’s remaining-time indicator describes that reward program. Its end doesn’t necessarily stop the vault’s swap-fee income: that income continues only where the underlying positions remain active and swaps generate fees.