Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Farm

STON.fi yield farming guide - stake LP tokens to earn additional rewards on top of trading fees

Yield farming functionality for STON.fi liquidity providers.

Overview

STON.fi farming allows LP token holders to earn additional rewards by staking their tokens in farming pools. This provides an extra incentive for liquidity providers beyond trading fees.

How It Works

  1. Provide Liquidity: Add tokens to a DEX pool to receive LP tokens

  2. Stake LP Tokens: Deposit LP tokens into a farming pool

  3. Earn Rewards: Accumulate farming rewards over time

  4. Claim & Unstake: Harvest rewards and withdraw LP tokens when desired

Key Features

  • Multiple farming pools with different reward rates

  • Flexible staking and unstaking

  • Real-time reward accumulation

  • NFT-based position tracking

SDK Integration

Farming functionality is available through the STON.fi SDK:

See the operation guides below for contract setup, transaction preparation, and execution.

Available Operations

Find the Farm and your position

Farm operations use LP tokens and Farm NFTs. To stake, select a Farm minter and the matching LP token. To claim rewards, unstake, or destroy a position, use its Farm NFT. The examples target FARM.v3.

Use API getFarmsByPool(poolAddress) to discover farms for an LP pool, and getWalletFarms({ walletAddress }) to find owned positions. Select the actual farm/version before choosing an NFT:

Use the discovered Farm or NFT address in the operation guide. Submit the built transaction through your TON wallet, then check the operation result.

Last updated