# Farming

### **Introduction to the Concept**

For a decentralized exchange (DEX) like SmarDex to function efficiently, it relies on the lending of tokens by its users. These tokens facilitate transactions between different participants. Liquidity providers, by fueling the [Volatility Vaults](#user-content-fn-1)[^1] with their paired tokens, are at the heart of this system. In recognition of their vital contribution, SmarDex rewards these contributors with [Volatility Vaults LP tokens](#user-content-fn-2)[^2] (also called LP tokens), distributed proportionally to their contribution in the [Volatility Vault](#user-content-fn-1)[^1]. These tokens not only entitle them to a portion of the fees generated from transactions within this [Volatility Vault](#user-content-fn-1)[^1] but also offer additional rewards through farming.

### **The Importance of Liquidity**

The liquidity of a [Volatility Vault](#user-content-fn-1)[^1] is paramount for ensuring seamless trades, contributing to the smooth operation of the platform, which is crucial for an optimal user experience and market efficiency. To stimulate this essential liquidity, SmarDex launches Farming Campaigns to reward liquidity providers. They simply need to stake their [LP tokens](#user-content-fn-3)[^3] in the corresponding farming pool to receive attractive rewards.

### **The Farming Process Explained**&#x20;

Imagine that you invest $3,000 in the ETH-WBTC [Volatility Vault](#user-content-fn-1)[^1] on SmarDex, which has a total liquidity of $100,000. Your contribution thus represents 3% of the total liquidity of this [Volatility Vault](#user-content-fn-1)[^1], and you accordingly receive 3% of the corresponding LP tokens. To benefit from the rewards of the Farming Campaign, you need to go to the "Farming" section on SmarDex.io and stake your [LP tokens](#user-content-fn-3)[^3] in the corresponding farming pool. By doing this, you activate your right to collect the yields promised by the active farming campaign.<br>

## How to use SmarDex protocol Farms

### 1. Navigate Farming Tab

<figure><img src="https://3219149788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FczLG78BsP0caLuIrQOod%2Fuploads%2FcOVujMES6ZHv2tUNniEg%2F0.%20navigate%20the%20farming%20tab.png?alt=media&#x26;token=f78b5e72-43e1-411d-af18-f6a894ecf3b5" alt=""><figcaption><p>Farming page</p></figcaption></figure>

### 2. Connect your web3 wallet (ex. Metamask, Coinbase Wallet, etc.)

<figure><img src="https://3219149788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FczLG78BsP0caLuIrQOod%2Fuploads%2FwovznGzAJlGOkyykjQsH%2F1%20Connect%20Wallet%20-%20copie.png?alt=media&#x26;token=562b9a71-49e6-4436-a694-4650e239082a" alt=""><figcaption><p>Click on 'Connect Wallet'</p></figcaption></figure>

<figure><img src="https://3219149788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FczLG78BsP0caLuIrQOod%2Fuploads%2FJmChWDksNR6st9CjfJy4%2F2.%20Select%20Wallet%20-%20copie.png?alt=media&#x26;token=bdd000f3-a436-430e-b2d0-35a51d918120" alt=""><figcaption><p>Select your wallet from the list and connect it</p></figcaption></figure>

### 3. Make sure you're on the chain you want to use

<figure><img src="https://3219149788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FczLG78BsP0caLuIrQOod%2Fuploads%2FgMzd1VzWOEwjslYzWbJP%2F3.%20Click%20here%20to%20change%20chain%20-%20copie%20.png?alt=media&#x26;token=caf47189-e8bc-4fbf-8939-e370f33fe273" alt=""><figcaption><p>You can change chain by clicking here, in this example we are connected to polygon</p></figcaption></figure>

### 4. Select the Farm associated with the token pair you've added to the Volatility Vault

<figure><img src="https://3219149788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FczLG78BsP0caLuIrQOod%2Fuploads%2F4wTQHGiF78zp1YoLhMBI%2F5.%20Select%20the%20pair%20you%20add%20liquidity%20in%20th%20Vault%20-%20copie.png?alt=media&#x26;token=16b2669e-cd8d-4b15-b598-5a986d680341" alt=""><figcaption><p>Click on the corresponding farming pool</p></figcaption></figure>

<figure><img src="https://3219149788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FczLG78BsP0caLuIrQOod%2Fuploads%2FW7kaobeQOGP5BY319zpx%2F6%20Farm%20selectione%CC%81e%20-%20copie.png?alt=media&#x26;token=45ac3245-eb53-43b3-ad76-6670610c6940" alt=""><figcaption><p>Ready to stake LP tokens</p></figcaption></figure>

### 5. Start to stake your LP token

<figure><img src="https://3219149788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FczLG78BsP0caLuIrQOod%2Fuploads%2FiGbgLotefoJBNxtjZajg%2F7.%20Click%20on%20&#x27;Stake%20LP&#x27;%20copie.png?alt=media&#x26;token=f75b71ae-b940-4eb0-a7d2-17e97eb4ddde" alt=""><figcaption><p>Click on 'Stake LP'</p></figcaption></figure>

<figure><img src="https://3219149788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FczLG78BsP0caLuIrQOod%2Fuploads%2FaSCbGFQKBzjYxDrAzCJD%2F8.%20Choose%20the%20amount%20-%20copie.png?alt=media&#x26;token=54a7da7b-752d-4e3a-ab16-15901a539bdb" alt=""><figcaption><p>Choose the amount of LP token you want to farm</p></figcaption></figure>

### 6. Approve the LP token smart contract to interact with your wallet

<figure><img src="https://3219149788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FczLG78BsP0caLuIrQOod%2Fuploads%2FtEMqz2rEBMSujpTXsvr3%2F9.%20Approve%20LP%20token%20-%20copie.png?alt=media&#x26;token=77e67770-f3a9-45af-863e-0f6e4222a0bb" alt=""><figcaption><p>Approve LP token to interact with your wallet</p></figcaption></figure>

<figure><img src="https://3219149788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FczLG78BsP0caLuIrQOod%2Fuploads%2FFY2tRl33nicWDMN3G3Aq%2F10.%20Chose%20the%20spending%20cap%20request%20-%20copie.png?alt=media&#x26;token=060e62e1-a43a-4a42-a3ac-b8fd8d945789" alt=""><figcaption><p>Set the authorized spending limit for the smart contract and click 'Next'</p></figcaption></figure>

<figure><img src="https://3219149788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FczLG78BsP0caLuIrQOod%2Fuploads%2FRcdzhiAJtxuCd84pticw%2F11.%20Approve%20on%20MM%20-%20copie.png?alt=media&#x26;token=651157ae-607e-4eeb-ba54-df08615e6592" alt=""><figcaption><p>Approve it on your wallet</p></figcaption></figure>

### 7. Confirm the farming of your LP tokens

<figure><img src="https://3219149788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FczLG78BsP0caLuIrQOod%2Fuploads%2F2CRGgQkh56Or4Qpb2XUP%2F13.%20Confirm%20-%20copie.png?alt=media&#x26;token=c52404c7-237e-4ac1-8ec3-7ca59a564c83" alt=""><figcaption><p>Click on 'Confirm'</p></figcaption></figure>

<figure><img src="https://3219149788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FczLG78BsP0caLuIrQOod%2Fuploads%2Ffx3KvWh3WYm8TpthdSjN%2F14.%20Confirm%20on%20MM%20-%20copie.png?alt=media&#x26;token=0cdbce0e-6264-441e-8769-211635e0348b" alt=""><figcaption><p>Confirm in your wallet</p></figcaption></figure>

<figure><img src="https://3219149788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FczLG78BsP0caLuIrQOod%2Fuploads%2FjAnbNbEVQN9aNnUld8QT%2F15.%20Stake%20LP%20token%20succesfully%20-%20copie.png?alt=media&#x26;token=4601ca08-1e2a-4e49-9526-7768ba44c043" alt=""><figcaption><p>Your LP tokens have been successfully staked in the Farming Pool!<br>You can verify it by checking the staked amount (here 65.02 usdc.e and 3176.48 SDEX, all worthing ~ 143$ at this time)</p></figcaption></figure>

###

### You can then easily harvest your rewards, unstake, or stake more LP tokens as desired

<figure><img src="https://3219149788-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FczLG78BsP0caLuIrQOod%2Fuploads%2FvLbYDe3unz5vUWGbHAAE%2F16.%20Manage%20your%20stakes%20.png?alt=media&#x26;token=070cf42b-3515-4336-8a31-777925c076d4" alt=""><figcaption><p>Manage your stakes</p></figcaption></figure>

[^1]: SmarDex's intelligent Liquidity Pools

[^2]: **Volatility Vault Liquidity Providing Tokens (LP tokens):** \
    These are tokens received by liquidity providers as proof of their contribution to a Liquidity Pool (Volatility Vaults at SmarDex) in a decentralized exchange. LP Tokens signify the stake held and can be used for various DeFi activities, such as yield farming.

[^3]: **LP tokens (or Volatility Vault LP token):** \
    These are tokens received by liquidity providers as proof of their contribution to a Liquidity Pool (Volatility Vaults at SmarDex) in a decentralized exchange. LP Tokens signify the stake held and can be used for various DeFi activities, such as yield farming.
