Deposit Liquidity

Learn how to provide liquidity by using Gamma's liquidity pools

1) Preparation

If you haven't already, make sure you download a proper web3 wallet like Metamask.
Also, make sure that you have a significant amount of Ethereum (or other gas tokens) in your wallet to cover the gas costs to provide liquidity. You will have several transactions, including purchasing the pair, approving each token in the pair to use on Gamma's dApp, depositing, and then eventually withdrawing. If these gas fees are too expensive, consider providing liquidity on an L2 network like Polygon. Use the link below to evaluate the current market gas costs.
Lastly, make sure you fundamentally understand liquidity pools and Uniswap V3's concentrated liquidity system. Even though Gamma is managing your position, it's still important to understand the basics. Here is some quick reading on the subject:
Our first step in proving liquidity (LPing) is to acquire the tokens for the pair we want to provide liquidity for, but before that, we want to take a look at what pairs are available on Gamma.

2) Connect wallet and find a pool to provide liquidity

Head on over to Gamma's dApp at:
This is a good time to connect your wallet. Go ahead and press the red "Connect Wallet" button on the top right corner.
Once connected, you'll be able to browse the pools and networks. In this guide, we'll be using Metamask.
Click on the "Provide Activity Liquidity" box (red) to take you to the dashboard of liquidity pools.
We finally arrive on the landing page seen below.
Lots of things are happening here. Don't get overwhelmed! It's pretty simple. We'll go through it piece by piece.
In the top-left-hand corner, are your navigation buttons. They take you to the different dApp features, which include LPing, staking, and analytics.
In the top-right-hand corner, you'll find network controls and your currently connected wallet. If you're looking to LP on another network like Polygon or Optimism, switch networks now. For the guide here, we'll be staying on Ethereum.
On the top of the box with the liquidity pools, you'll find the "Protocol Stats" bar that tells you some basic statistics about the Gamma system.
Total Value Locked: Also known as TVL, this is the sum of all the funds providing liquidity in the Gamma system at the current time. At the time of this guide, there are $11.36 million dollars providing liquidity in Gamma. Total Fees Accrued: This is the cumulative sum of all the fees produced by providing liquidity in Gamma. Fee-Based APR: This is the total fees produced compared to the total value locked, extrapolated to a yearly projection at the given time. This value describes the performance of all the pools combined compared to the TVL. Protocol Fees APY: This is the total fees produced per GAMMA staked to a yearly projection at the given time. This value includes a projection for compounding GAMMA returns. This value describes the performance of staking GAMMA.
Below that, you'll find a link to our Legacy V1 system (NFT Vaults). You only need to go here if you have current deposits in this system. You cannot deposit anymore, only withdraw.
Finally, we have the liquidity pools. Here you'll find all the options available to you for LPing.
Today, we're going to deposit into WBTC-WETH 0.05%.

3) Double-Sided: Find the proper pair ratio

This is a critical and often overlooked step. Gamma uses something called "dual-sided" deposits. You're actually going to be depositing two separate tokens. "Single-sided" deposits are not available right now.
As such, we'll need both tokens. But, how much of each? Well, it depends on how the pool is balanced at the given time. Ideally, the pool is close to 50-50, but that's not always the case. If you want to optimize your deposit, we're going to want to compare the ratio of the assets in Gamma's pools. There's a quick and easy way to do this.
It all starts with picking a pool you are interested in. In this case, we're going to look at WBTC-WETH.
Note, the UI will show your available funds and It can be used to determine how much each token you can or need to make a deposit. Inputting a number automatically calculates the other number. "Max" will set the maximum amount of funds in your wallet.
Let's try seeing what ratios we get with one of each token.
Maxing WBTC gives us an acceptable ratio of WBTC to WETH needed to deposit.
Maxing WETH does not, as it requires too much WBTC.
Note the error message tha pops up on the UI. It will inform you when there is a problem.
Is this pool's ratio 50-50? Clearly not. Let's find out what it is. Openanother tab and head on over to Uniswap V3's info page. .
This is an excellent opportunity to evaluate the pair you're going to be depositing into. Uniswap's analytics should provide us with some basic information.
Type your tokens into the search bar. In this case, "WBTC" would find the pair fastest. Take care to remember the fee tier of the pool. It's on the Gamma pool under the details.
When searching, several pools may come up. We want to choose the corresponding fee tier highlighted in the red box.
Now we're at the analytics page for the WBTC-ETH 0.05% pool.
Information overload again! Let's break it down.
The first thing we see is the ratio of the pairs. They don't match up! That means the deposit on into the Gamma WBTC-ETH pool is not going to be 50-50.
In this example:
1 WBTC = 12.9623 ETH, but Gamma allows a deposit of 1 WBTC to 1.118 ETH 1 ETH = 0.0771 WBTC, but Gamma allows a deposit of 1 ETH to 0.9055 WBTC.
At the time of this guide, 1 WBTC is approximately $20,490 while one ETH is $1,580.
$20,490 + (1.118 * $1,580) = $22,256 = ratio of 92-8 WBTC-WETH
$1,580 + (0.9055 * $20,490) = $20,133 = 92-8 WBTC-WETH
The current ratio is approximately a 92-8 ratio to WBTC-WETH.
So you'll need more BTC than ETH. You'll want to make your purchase in those ratios to minimize the number of leftover tokens not put toward the liquidity pool.
While we here at Uniswap, we can evaluate some stats, and get the tokens to deposit into the pool.

4) Acquire the proper tokens

Now that we've evaluated all the analytics of the WBTC-WETH pair and we've connected to both Gamma's dApp and have Uniswap open and ready. we need to purchase any of the assets we don't have. On Uniswap V3, click the "Trade" button in the top-left corner.
By now, this should be pretty familiar to you. We'll go ahead and purchase some WBTC as a demonstration

5) Deposit

Switch back to the Gamma App and begin the process of depositing.
The first thing we are asked to do is wrap ETH. This is normal if you don't have Wrapped ETH (WETH) in your wallet.
Once wrapped, you can move on to the token approvals. You must do this every time for security purposes.
You know that you are ready to deposit when you see the deposit button on your user interface. Press "Deposit" to proceed. This will be the largest and most expensive transaction.

6) Confirm UI information

After depositing, you can see you wallet balances have changed.
Likewise, you are able to access an LP position to withdraw.
Back on the dashboard, you can see your LP position as well.

7) Confirm on Etherscan

Let's double-check the transaction on etherscan. You can look directly at your wallet by doing to, but let's take a shortcut through metamask.
Click on the last transaction in Metamask, and bring up the details
Click on "View on Block Explorer". You'll be taken to etherscan.
In this window, you'll see lots of information. The contract you interacted with (blue box). The transaction amounts (red box), and how the transaction process works.

8) What's next?

Now that you have LP tokens. You can withdraw them to exit your position or interact with more advanced features like Liquidity Mining.