Farm
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
Provide Liquidity: Add tokens to a DEX pool to receive LP tokens
Stake LP Tokens: Deposit LP tokens into a farming pool
Earn Rewards: Accumulate farming rewards over time
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
The farming functionality is integrated into the STON.fi SDK:
import { Farm } from '@ston-fi/sdk';
// Stake LP tokens
await farm.stake({
lpTokenAmount: amount,
farmAddress: farmAddress
});
// Claim rewards
await farm.claimRewards({
farmNftAddress: nftAddress
});
Available Operations
Last updated