BTB
/

Gamma Strategies

Liquidity Managerwebsite
Actively managed Uniswap V3 liquidity. Each hypervisor is a single-pool ERC-20 share token that holds a base and a limit position. Deposit two tokens through the UniProxy, and withdraw shares for both tokens directly from the hypervisor.

What you can do

find-hypervisorPick a hypervisor by chain and TVL or APRGET https://api.gamma.xyz/frontend/hypervisors/allDataSummary?chain=<chain>&protocol=uniswapv3 and sort by tvlUSD or feeApr.
depositDeposit two tokens into a hypervisor (Ethereum, Base, Optimism)approve the hypervisor for token0 and token1, use getDepositAmount on the UniProxy to size the second token, then UniProxy.deposit(deposit0, deposit1, you, hypervisor, [0,0,0,0] or minimums). Shares arrive at 'to'.
withdrawWithdraw shares for both tokenshypervisor.withdraw(shares, you, you, [minBase0, minBase1, minLimit0, minLimit1]). No approval needed. Shares = balanceOf(you).
check-positionValue a position in both tokensamount0, amount1 = getTotalAmounts(); your amounts = balanceOf(you) / totalSupply() * (amount0, amount1).
Hypervisors hold a Uniswap V3 position and rebalance it. Price moves outside the range, impermanent loss and fee changes all affect the value.
Rebalancing and fee changes are controlled by the hypervisor owner (Gamma), and withdrawals depend on the pool's liquidity. Check owner() and the recent rebalance history before large positions.
Deposits go through the UniProxy and clearance checks. If clearance reverts, the deposit fails and no shares are minted.
Each hypervisor has its own UniProxy. The proxy whitelisted for a hypervisor is the only address that can call its deposit, so use whitelistedAddress() rather than a fixed address.

Contracts

Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).
Hypervisor xLQTY-WETH3 (ethereum, Uniswap V3)vault on ethereum0xD5F4877263b736625ba363385983C2D02B41F35b
write withdraw(uint256,address,address,uint256[4])
Burn hypervisor LP shares and receive both tokens. Arguments: shares, to (receives tokens), from (must be the caller), minAmounts [base token0, base token1, limit token0, limit token1] as slippage floors. Callable directly, no proxy needed. Use balanceOf(you) for shares.
read getTotalAmounts()
Total token0 and token1 held across the base and limit positions and idle balance. Divide by totalSupply() to get the value per share.
read getBasePosition()
Base position liquidity and token amounts (the main Uniswap V3 range).
read getLimitPosition()
Limit position liquidity and token amounts (the narrow range used for the limit order part of the strategy).
read currentTick()
Current tick of the underlying Uniswap V3 pool.
read balanceOf(address)
Hypervisor LP share balance of an account.
read totalSupply()
Total hypervisor LP shares.
read token0()
First token of the pair (lower address).
read token1()
Second token of the pair.
read pool()
Underlying Uniswap V3 pool.
read whitelistedAddress()
The only address allowed to call deposit. It is the UniProxy for this hypervisor, so use it as the deposit entry point.
read directDeposit()
True when deposits add liquidity to Uniswap immediately (directDeposit mode), false when they sit idle until the next rebalance.
UniProxy, whitelisted for xLQTY-WETH3 (ethereum)router on ethereum0x911BfbAca43f117E52197AE62D439d6A645C8886
write deposit(uint256,uint256,address,address,uint256[4])
Deposit both tokens into a hypervisor. Arguments: deposit0 and deposit1 (smallest units, either can be 0 for one-sided), to (receives the shares), pos (the hypervisor address), minIn [base token0, base token1, limit token0, limit token1] minimum amounts for direct deposits (zero if not used). Reverts unless the clearance contract approves the deposit. The hypervisor pulls tokens from the caller, so approve the HYPERVISOR address (pos) for each token, not this proxy.
read getDepositAmount(address,address,uint256)
Given an amount of one token, returns the minimum and maximum amount of the other token the position will accept. Arguments: pos (hypervisor), token (the token you are depositing), amount. Use it to size a two-sided deposit.
read clearance()
Clearing contract that approves each deposit and share mint.
read owner()
Owner of the proxy (Gamma).
Hypervisor xWETH-UP3 (base, Uniswap V3)vault on base0x2060cB6359f03a0864064561D86911bB6f1cA103
write withdraw(uint256,address,address,uint256[4])
Burn hypervisor LP shares and receive both tokens. Arguments: shares, to (receives tokens), from (must be the caller), minAmounts [base token0, base token1, limit token0, limit token1] as slippage floors. Callable directly, no proxy needed. Use balanceOf(you) for shares.
read getTotalAmounts()
Total token0 and token1 held across the base and limit positions and idle balance. Divide by totalSupply() to get the value per share.
read getBasePosition()
Base position liquidity and token amounts (the main Uniswap V3 range).
read getLimitPosition()
Limit position liquidity and token amounts (the narrow range used for the limit order part of the strategy).
read currentTick()
Current tick of the underlying Uniswap V3 pool.
read balanceOf(address)
Hypervisor LP share balance of an account.
read totalSupply()
Total hypervisor LP shares.
read token0()
First token of the pair (lower address).
read token1()
Second token of the pair.
read pool()
Underlying Uniswap V3 pool.
read whitelistedAddress()
The only address allowed to call deposit. It is the UniProxy for this hypervisor, so use it as the deposit entry point.
read directDeposit()
True when deposits add liquidity to Uniswap immediately (directDeposit mode), false when they sit idle until the next rebalance.
UniProxy, whitelisted for xWETH-UP3 (base)router on base0xbd8fD52BE2EC689dac9155FAd51774F63a965D99
write deposit(uint256,uint256,address,address,uint256[4])
Deposit both tokens into a hypervisor. Arguments: deposit0 and deposit1 (smallest units, either can be 0 for one-sided), to (receives the shares), pos (the hypervisor address), minIn [base token0, base token1, limit token0, limit token1] minimum amounts for direct deposits (zero if not used). Reverts unless the clearance contract approves the deposit. The hypervisor pulls tokens from the caller, so approve the HYPERVISOR address (pos) for each token, not this proxy.
read getDepositAmount(address,address,uint256)
Given an amount of one token, returns the minimum and maximum amount of the other token the position will accept. Arguments: pos (hypervisor), token (the token you are depositing), amount. Use it to size a two-sided deposit.
read clearance()
Clearing contract that approves each deposit and share mint.
read owner()
Owner of the proxy (Gamma).
Hypervisor xUSDC-DAI01 (optimism, Uniswap V3)vault on optimism0xaED05fdd471a4EecEe48B34d38c59CC76681A6C8
write withdraw(uint256,address,address,uint256[4])
Burn hypervisor LP shares and receive both tokens. Arguments: shares, to (receives tokens), from (must be the caller), minAmounts [base token0, base token1, limit token0, limit token1] as slippage floors. Callable directly, no proxy needed. Use balanceOf(you) for shares.
read getTotalAmounts()
Total token0 and token1 held across the base and limit positions and idle balance. Divide by totalSupply() to get the value per share.
read getBasePosition()
Base position liquidity and token amounts (the main Uniswap V3 range).
read getLimitPosition()
Limit position liquidity and token amounts (the narrow range used for the limit order part of the strategy).
read currentTick()
Current tick of the underlying Uniswap V3 pool.
read balanceOf(address)
Hypervisor LP share balance of an account.
read totalSupply()
Total hypervisor LP shares.
read token0()
First token of the pair (lower address).
read token1()
Second token of the pair.
read pool()
Underlying Uniswap V3 pool.
read whitelistedAddress()
The only address allowed to call deposit. It is the UniProxy for this hypervisor, so use it as the deposit entry point.
read directDeposit()
True when deposits add liquidity to Uniswap immediately (directDeposit mode), false when they sit idle until the next rebalance.
UniProxy, whitelisted for xUSDC-DAI01 (optimism)router on optimism0x40a3E5778f66835265602f92D507AeC708c2C0AD
write deposit(uint256,uint256,address,address,uint256[4])
Deposit both tokens into a hypervisor. Arguments: deposit0 and deposit1 (smallest units, either can be 0 for one-sided), to (receives the shares), pos (the hypervisor address), minIn [base token0, base token1, limit token0, limit token1] minimum amounts for direct deposits (zero if not used). Reverts unless the clearance contract approves the deposit. The hypervisor pulls tokens from the caller, so approve the HYPERVISOR address (pos) for each token, not this proxy.
read getDepositAmount(address,address,uint256)
Given an amount of one token, returns the minimum and maximum amount of the other token the position will accept. Arguments: pos (hypervisor), token (the token you are depositing), amount. Use it to size a two-sided deposit.
read owner()
Owner of the proxy (Gamma).
Hypervisor xXY-USDT5 (arbitrum, Uniswap V3)vault on arbitrum0x4949d359F24Ba4882cfc1fc750F99A51863c9ccb
write withdraw(uint256,address,address,uint256[4])
Burn hypervisor LP shares and receive both tokens. Arguments: shares, to (receives tokens), from (must be the caller), minAmounts [base token0, base token1, limit token0, limit token1] as slippage floors. Callable directly, no proxy needed. Use balanceOf(you) for shares.
read getTotalAmounts()
Total token0 and token1 held across the base and limit positions and idle balance. Divide by totalSupply() to get the value per share.
read getBasePosition()
Base position liquidity and token amounts (the main Uniswap V3 range).
read getLimitPosition()
Limit position liquidity and token amounts (the narrow range used for the limit order part of the strategy).
read currentTick()
Current tick of the underlying Uniswap V3 pool.
read balanceOf(address)
Hypervisor LP share balance of an account.
read totalSupply()
Total hypervisor LP shares.
read token0()
First token of the pair (lower address).
read token1()
Second token of the pair.
read pool()
Underlying Uniswap V3 pool.
read whitelistedAddress()
The only address allowed to call deposit. It is the UniProxy for this hypervisor, so use it as the deposit entry point.
read directDeposit()
True when deposits add liquidity to Uniswap immediately (directDeposit mode), false when they sit idle until the next rebalance.
UniProxy, whitelisted for xXY-USDT5 (arbitrum)other on arbitrum0xDC4a311f0D852934d9b51C0eAc7c7e13EA1DF11b
write deposit(uint256)
Only the ABI is verified here (Sourcify). This proxy does not have the UniProxy deposit signature, so check its source or Gamma's docs before using it. Listed for reference.
Hypervisor xUSDC-NCT10 (polygon, Uniswap V3)vault on polygon0x1A246D546f52D8145A55DdA01908Fc413111305e
write withdraw(uint256,address,address,uint256[4])
Burn hypervisor LP shares and receive both tokens. Arguments: shares, to (receives tokens), from (must be the caller), minAmounts [base token0, base token1, limit token0, limit token1] as slippage floors. Callable directly, no proxy needed. Use balanceOf(you) for shares.
read getTotalAmounts()
Total token0 and token1 held across the base and limit positions and idle balance. Divide by totalSupply() to get the value per share.
read getBasePosition()
Base position liquidity and token amounts (the main Uniswap V3 range).
read getLimitPosition()
Limit position liquidity and token amounts (the narrow range used for the limit order part of the strategy).
read currentTick()
Current tick of the underlying Uniswap V3 pool.
read balanceOf(address)
Hypervisor LP share balance of an account.
read totalSupply()
Total hypervisor LP shares.
read token0()
First token of the pair (lower address).
read token1()
Second token of the pair.
read pool()
Underlying Uniswap V3 pool.
read whitelistedAddress()
The only address allowed to call deposit. It is the UniProxy for this hypervisor, so use it as the deposit entry point.
read directDeposit()
True when deposits add liquidity to Uniswap immediately (directDeposit mode), false when they sit idle until the next rebalance.
UniProxy, whitelisted for xUSDC-NCT10 (polygon)other on polygon0x48975Ea6aA25914927241C3A9F493BfEEb8CA591