Algebra Integral
HomepageSocialsIntegrate
  • Overview
    • What is Algebra?
    • Who Are These Docs For
    • Why Concentrated Liquidity & Modularity Matter
    • Partners & Ecosystem
    • Audits & Security
    • Social Media & Communities
  • Introducing Algebra Integral to Founders & Business Teams
    • Overview of Algebra Integral
      • How It Works: Core + Plugins
      • V3 vs. V4: Key Differences
      • Integral vs. Uniswap V4: Key Differences
    • Benefits of Modular Architecture
      • Perks for DEXes
      • Perks for Builders
      • Perks for Users
  • Modularity: Use Cases
  • Plugin Marketplace
  • Algebra Partner Support
  • User Guide Template For DEXes
    • Concentrated Liquidity & Modular Architecture Basics
      • Glossary
      • How Concentrated Liquidity & Modular Architecture Work
      • Benefits of Modular Concentrated Liquidity AMM for Users
        • Perks for Liquidity Providers
        • Perks for Projects
        • Perks for Traders
      • Fee Mechanics
        • Static Fee
        • Dynamic Fee
        • Sliding Fee
        • Dynamic Fee Based on Trading Volume
        • Managed Swap Fee
        • Whitelist Fee Discount
      • Farming
      • Farming FAQ
  • Price Ranges and Liquidity Strategies
    • What Are Price Ranges
    • Basic Price Range Presets
    • Advanced Range Presets
    • How Price Moves Affect Liquidity
    • Impermanent Loss: Concepts & Mitigation
    • Matching Your Liquidity Strategy to Market Moves
    • Swap & LP Strategies with Price Ranges
    • Liquidity Scenarios & Risk Profiles
  • Liquidity Provisioning: Tutorials & FAQs
    • Adding Liquidity
      • Manual Mode
      • Automated Mode
    • Managing & Adjusting Positions
    • How APR is Calculated
    • FAQ for LPs
  • Algebra Integral / Technical Reference
    • Intro
    • Audits
    • Integration Process
      • Specification and API of contracts
        • Algebra Pool
        • Algebra Factory
        • Swap Router
        • Nonfungible Position Manager
        • Quoter
        • QuoterV2
        • TickLens
      • Interaction with pools
        • Getting data from pools
      • Subgraphs and analytics
        • Examples of queries
      • Technical Guides
        • Intro
        • Swaps
          • Single swaps
          • Multihop swaps
        • Providing liquidity
          • Setting up your contract
          • Mint a new position
          • Collect fees
          • Decrease liquidity
          • Increase liquidity
          • Final Contract
        • Flashloans
          • Setting up your contract
          • Calling flash
          • Flash callback
          • Final contract
      • Migration from UniswapV3
      • FAQ
    • Core Logic
      • Pool overview
      • Swap calculation
      • Liquidity and positions
      • Ticks
        • Ticks search tree
      • Reserves
      • Flash
      • Plugins
      • AlgebraFactory and roles
    • Plugins
      • Overview
      • Farming
      • Adaptive Fee
      • Sliding Fee
      • Whitelist Discount Fee
      • Safety Switch
      • Position Limit Orders
      • Managed Swap Fee
      • FAQ
    • Guides
      • Plugin Development
      • Plugin Testing
      • Plugin Deployment
    • Changes V1
    • Changes V1.1
    • Changes v1.2
  • Changes v1.2.1
  • Other
    • Archived Documentation
Powered by GitBook
On this page
  • How to Start Farming
  • How to Claim Fees
  • How Farming Works
  • Rewards Calculation
  1. User Guide Template For DEXes
  2. Concentrated Liquidity & Modular Architecture Basics

Farming

PreviousWhitelist Fee DiscountNextFarming FAQ

Last updated 16 hours ago

Note for DEX Teams:

Farming functionality on Algebra-powered DEXes is highly customizable. While this guide outlines the default mechanics, DEX teams can adjust farming formulas, reward distribution logic, token multipliers, and update intervals based on their unique economic models or ecosystem goals.

How to Start Farming

Liquidity provider (LP) positions minted in a pool automatically participate in farming if farming is enabled for that pool. To easily find eligible pools, use the “Active Farming” toggle on the Pools page or navigate directly to the Farms tab.

How to Claim Fees

Farming rewards can be claimed from either the Pools or Farms pages. Eligible positions will be visible on both. To collect your rewards:

  1. Click Approve to authorize the reward contract (one-time action per position),

  2. Then click Claim to receive the rewards.

How Farming Works

Farming on Algebra-powered DEXes serves as a reward boost on top of swap fees, incentivizing liquidity provision. However:

  • Farming rewards are only distributed to in-range liquidity (i.e., positions that are currently active in the market price range),

  • No rewards are earned during inactive periods, or when there is no trading volume in the pool.

Rewards Calculation

rewardToken=farming.rewardRate∗INTERVAL∗rewardToken.derivedTokenrewardToken = farming.rewardRate * INTERVAL * rewardToken.derivedTokenrewardToken=farming.rewardRate∗INTERVAL∗rewardToken.derivedToken
farmingMultiplier=rewardsTOKEN/FeeCollectedTotalTOKENfarmingMultiplier=rewardsTOKEN / FeeCollectedTotalTOKENfarmingMultiplier=rewardsTOKEN/FeeCollectedTotalTOKEN

Key Terms:

  • farming.rewardRate: Amount of reward token distributed per interval

  • INTERVAL: Duration of the interval

  • rewardToken.derivedToken: Value of the reward token expressed in the DEX’s main token (e.g., ETH, TON)

  • feeCollectedTotalTOKEN: Total fees collected across the pool during the interval (in the platform's token)

Example:

• farming.rewardRate: $500/day in USDT

• INTERVAL: 1 day

• rewardToken.derivedTOKEN: 1 TOKEN = 6 USDT

• TVL of the pool: $1,000,000

• Pool Trading Volume: $500,000/day

• Pool Commission Percentage: 0.3%

• Fee Collected: $1,500

In this case, the farming multiplier is 1.33, meaning liquidity providers will receive additional 0.33 TOKEN for each TOKEN of fees collected, provided liquidity is within the active price range.