CurlyBracketEffect

Posted on Aug 21, 2021Read on Mirror.xyz

Tutorial: How to provide Liquidity on Curve (Polygon)

Curve LP

Tutorial: How to provide Liquidity on Curve (Polygon)

What is Curve?

Curve is an automated market maker (AMM) protocol that allows users to swap assets using liquidity pools, similar to Uniswap. However, Curve differs from Uniswap in that it is optimized to allow users to trade stablecoins with as little gas fees and slippage as possible. Slippage is a term that refers to how much the price of an asset shifts during the time that it takes for your order to go through and is the result of a few factors:

  1. The amount of Liquidity in a pool
  2. The size of your order
  3. Other market conditions (ie other users performing swaps on with the same pool at the same time.)

For example, if you wanted to trade 100 DAI for 100 USDC and the total liquidity in the pool was only $1000, the slippage would be much higher than if the total liquidity was $10,000. - OR - If several users are all selling or buying the same asset in a pool the slippage for that asset will tend to be higher. Curve was designed to mitigate the impacts of slippage on pegged coins such as stable coins.

Like other AMMs Curve relies on users to provide liquidity to the pools it supports, and return gives users an opportunity to earn a yield through aggregating lending protocol APRs, trading fees, as well as occasional incentive programs.

Curve on Polygon?

In this tutorial, we will be covering how to become a Liquidity Provider on Curve using the Polygon network. Polygon is an EVM smart contract enabled side chain that is very similar to Ethereum. This means that you can use familiar tools like MetaMask to approve transactions. An added benefit is that the transaction fees on Polygon are much lower than on Mainnet Ethereum.

In order to get assets onto Polygon, you will need to use a bridge. Which you can find here:

ETH<>Polygon bridge

Here is a tutorial on how to Use Polygon for the first time, but in this tutorial, I will assume you have already gone through it.

How to provide Liquidity on Curve

What you will need:

  1. A supported web3 wallet.
  2. Some Matic in your wallet to pay gas fees
  3. At least 1 supported asset in your wallet on Polygon Network

I will also assume that you are familiar with approving transactions with your wallet software.

Once you have everything you need from the list above, we are ready to dive in.

Step 1. Go to the Curve homepage and connect your wallet

You can get to the homepage by clicking this link https://polygon.curve.fi/. It should prompt you to connect your wallet automatically, but if not, then you will need to click the “Connect wallet” button in the center, near the top of the page, and select the wallet software you prefer from the list. Make sure you set the network to the Polygon Mainnet.

If you are managing several wallets with the same software, you will also need to specify which address you wish to connect to the site.

Step 2. Choose the pool you wish to provide liquidity for

You can view the available pools in the “Curve Pools” section of the page. There are currently only a few options to choose from, but each contains different assets and parameters to consider. It is important to understand all of the risks involved when providing liquidity to these pools, and you can read more about the risks and how Curve works here: https://resources.curve.fi/base-features/understanding-crypto-pools. In exchange for this risk, there are rewards though.

On the homepage you are able to see information that may influence which pool you choose to participate in. Those values are:

  • Base vAPY: variable APY based on the day’s trading activity
  • Rewards tAPY: Token APY based on current prices of tokens and reward rates
  • Volume: the amount of trading volume for the day (typically the more a pool is used the more opportunity for transaction fees there are.)

Once you have chosen a pool click on it to open up that pool’s trading page.

Step 3. Navigate to the Deposit page and input desired amounts

When you click on the pool from the “Curve pools” list, you will be taken to the “Buy and Sell” page for that pool. At the top of the page you can click on the “Deposit” tab to be taken to the page where you will be able to input the tokens you wish to provide as liquidity.

It’s worth mentioning again that entering into these pools comes with risks, so there is a link to learn more about the risks involved with the pool you have selected. You should read this before proceeding. Just below this you will see information about the assets you will be exposed to and the LP tokens you will receive along with their current value.

If you scroll to the bottom of the page you will see more details about the pool and you can find out more information about what it all means by reading through the documentation the Curve team has provided here: https://resources.curve.fi/.

Once you are comfortable you will want to enter the amounts for the assets the pool accepts. You do not need to have equal portions of each asset in order to enter the pool. If you deposit only one of the supported assets, it will be converted to the necessary amounts of all the other assets in the pool for you.

One thing to note is if one asset is in lower supply to the other assets in the pool, the protocol will offer users a bonus for depositing that asset by itself. In this instance DAI is in short supply, so depositing DAI alone will award a 0.015% bonus

Step 4. Review all inputs and click “Deposit”

There are two convenient options to help you allocate assets in the desired proportions, you can click them to automatically populate the amount fields, or manually enter the numbers. Once you have entered all the amounts and assessed the risks involved, you are ready to go ahead and click “Deposit”. Naturally, you will need to approve the protocol to access the selected tokens, and then you can submit the transaction to deposit them into the pool.

Once the transactions are confirmed a new box will appear that will allow you to Stake your new LP tokens in a gauge. If you click the “Stake unstated in gauge” button and approve the transactions, you will start to earn the pool-specific rewards for the liquidity you provided.

Step 5. Monitor your Pools

Once you have staked your LP tokens, a new button will appear on the homepage in the “Curve pools” section. Click on “My Dashboard” to monitor your pool(s).

It will bring you to a new page that will display all the stats for your pool(s).

Any time you want to withdraw your funds, you can revisit the pool page and click the “Withdraw” tab at the top of the screen. On this page, you can decide if you want to withdraw each asset in their current proportions, or you can choose to receive it as a single asset. After making that decision you can click the “Unstake & Withdraw” button.

Congrats you now have now provided liquidity on Curve!!

Always remember to return to the RabbitHole site in order to redeem each Task and then mark the Quest/Skill as complete within the timeframe so that you will be eligible for the reward.