Introduction
Yield Farming or Liquidity Mining is a aspect of DeFi that allows Liquidity Providers (LPs) to passively earn a return on capital contributed to a liquidity pool. The Yield Farm provides LPs with rewards over time to incentivize LPs to continue to provide liquidity to the pool as well as to help offset their risk.
This guide covers yield farming on KyberSwap Elastic Dynamic Farms. It covers the following aspects of yield farming on Dynamic Farms:
Staking liquidity positions
Step 1: Select farm and open a position

Select Dynamic Farm
You can view and filter the list of active farms on the Farms page. For the purposes of this guide, we will use a KNC - LINK pool with a fee tier of 1% on Polygon.
Dynamic Farms reward eligibility
You will continue to earn Dynamic Farming rewards as long as the token continues to trade within the position's selected range. That is, your position's selected range must encompass the active market price to be eligible for farming rewards.
You can refer to Dynamic Farms concept guide if you require further information on the exact farming mechanism.
Do note that an existing position will be required to be eligible for farming rewards. You can skip this section if you have an existing eligible position. For the complete guide on how to add liquidity to an Elastic pool, please refer to this article.

Open liquidity position
Step 2: Approve the farming contract

Approve farming contract
If this is your first time interacting with Elastic Dynamic Farms on this particular network, you will need to give approval for the farming smart contract to manage your wallet and balances.
Click on the “Approve Farming Contract” button on the Farms page to begin. This will require an onchain approval through your Web3 wallet.
Note: Be sure to check that the smart contract address is correct before authorizing the smart contract. KyberSwap Elastic farming smart contract addresses can be found here.
Step 3: Stake your position in the farm
Stake directly into Dynamic Farms
As an added convenience feature, Liquidity Providers are now able to directly stake their positions into their selected farm without first having to deposit their NFT positions into the Dynamic Farms contract. Positions are automatically deposited and staked into the farm hence LPs will only have to sign a single transaction to reap the farming rewards.

Stake position
Click on the “+ Stake” button to stake your NFT position.

Select positions to be staked
Select the appropriate NFT from the list on the next screen and click the “Stake Selected” button to proceed. (This is an onchain transaction.)
Your position is staked and is now eligible to accumulate rewards for the duration of the farming phase. You should now also be able to see your farming pool under the “My Farms” tab. This page will also display ended phases for the farms that you are currently participating in.
Note: Depending on the farming mechanism associated with your farm, your rewards will be calculated depending on the value of your liquidity position staked in the farm relative to other farmers, how long your liquidity position has been active in the pool (i.e. in range), and the trading volume utilizing your active liquidity position in the pool.
Step 4: View your staked positions

Toggle farm view
KyberSwap Elastic farms provides you two options when viewing your staked positions. This can be toggled using the view option in the filter bar located at the top of the page.
Grid View
In the grid view, all active farms will be displayed as individual cards in a grid. Your staked farms will be prioritized at the beginning of the grid. Note that in the grid overview page, you will be able to see how many of your positions are in or out of range by referring to the top right of each card.

Farm grid overview
To expose further details, you can select on the "View Positions" button at the bottom of each farm card.

Farm grid details
By viewing the positions in farms where you have a staked position, you will be able to view all the staked positions within the particular farm as well as the active price relative to the range of your staked positions.
List View
In the list view, all active farms will be displayed as individual rows within a list. Your staked farms will be prioritized at the top of the list. Note that in the list overview page, you will be able to see how many of your positions are in or out of range under the "My Deposit" row.

Farm list overview
To expose further details, you can select on the dropdown icon at the right of each farm entry.

Farm list details
By expanding the farm rows where you have a staked position, you will be able to view all the staked positions within the particular farm as well as the active price relative to the range of your staked positions.
Harvesting and claiming rewards
After you have accumulated rewards, you can harvest them from the pool and subsequently claim them (i.e. withdraw rewards to your wallet).
Step 1: Select pools to harvest
From the Farms page, click on the small “pickaxe” button associated with your desired pool to bring up the Harvest helper. Alternatively, if you have multiple pool farms and would like to harvest them all at once, you can use the “Harvest All” button to batch all the harvest transactions together. Please note that this does not save you any gas fees since every individual harvest call of the smart contract still needs to be broadcasted to the blockchain.

Harvest rewards
Step 2: Confirm harvest
From the Harvest screen that appears, click on the “Harvest” or "Harvest All" button to proceed. This is an onchain transaction that will require wallet confirmation.

Harvest all pop-up
If the pool does not have a rewards vesting schedule, your rewards will automatically be sent to your wallet. But if the pool has a vesting schedule, you will need to wait some time after harvesting for the rewards to vest before you can claim them.
Step 3: Claim vested rewards (vested pools only)
This step only applies to certain pools with a vesting schedule for rewards. Rewards harvested from such pools will need to be claimed in a separate action. Click the “Claim” button in the Vesting tab of the Farms page.
Note: The vast majority of active yield farming pools on KyberSwap do not have a vesting schedule, and these do not require this separate claim step.
Unstaking liquidity positions
If a farming phase ends and a new phase begins, you will first need to unstake your liquidity position from the pool and re-stake it in order to resume accumulation of rewards. You may also choose to unstake from a farming pool at any time, even while the farm is still active.
Step 1: Select pool to unstake
On the Farms page, click on the “- Unstake” button of the pool you would like to unstake from.

Unstake position from farm
Step 2: Confirm unstake
On the unstake helper. select the liquidity position(s) that you would like to unstake and then click the “Unstake Selected” button. This is an onchain transaction.

Select position to unstake
As part of this action, any as-yet unharvested rewards will also automatically be harvested.
From this point on, your liquidity position can either once again be staked into an active phase of the pool to earn rewards, or it can be withdrawn entirely from the farming contract.
Step 3: Withdraw from farming contract

Withdraw from farm
If you no longer want to participate in the farm, you can withdraw your liquidity from the farming contract. Click the “Withdraw” button on the Farms page.

Select positions to withdraw from farming contract
From the helper that appears, select the liquidity positions to withdraw and click the “Withdraw Selected” button. This is an onchain transaction.
Note: You can only withdraw liquidity positions that have already been unstaked. Staked positions will be greyed out and unselectable.