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
  • Examples of Plugin Capabilities:
  • Plugin Use Cases in Detail
  • Why Plugins Matter

Modularity: Use Cases

Examples of Plugin Capabilities:

Extend your DEX beyond traditional trading with plug-and-play functionality. Connect the plugin when needed with the ability to stop using it at any time to optimize gas costs (for example, to use incentive plugins only during campaigns)

  • Dynamic & Elastic Fees Adjust fees automatically based on volatility, trading volume, or time.

  • Whitelist / Blacklist Systems Enable access control, KYC layers, or token-gated trading.

  • Gas Discount Mechanisms Subsidize or refund gas to drive specific behaviors.

  • Just-In-Time (JIT) Liquidity Protection Prevent frontrunning and liquidity sniping.

  • Impermanent Loss Mitigation / LVR Solutions Protect LPs from common DeFi risks through specialized logic.

  • Perpetual Contracts Layer on advanced financial products like perps for new revenue channels.

Plugin Use Cases in Detail

Explore what's already available with Algebra Integral.

Dynamic Fee Based on Trading Volume

Retain users through tiered rewards and personalized fee structures.

How it works: Using ZK coprocessors (e.g., Brevis), the DEX tracks user volume and applies reduced fees to high-volume traders. Great for VIP programs.

Benefits:

  • For Users: Lower fees, VIP perks, loyalty incentives.

  • For DEXes: Improved retention, higher volume, flexible monetization.

Dynamic Fee Plugin (Volatility-Based)

Real-time fee adjustment based on asset behavior.

How it works: The DEX monitors volatility, volume, and liquidity to set optimal trading fees on each pool—maximizing LP rewards and DEX earnings.

Benefits:

  • Competitive Edge: Attract traders with optimized fees.

  • Higher LP Revenue: Boost LP earnings during volatility.

Farming Plugin

Launch flexible reward programs without modifying pool logic.

How it works: LPs receive ERC-721 tokens for their positions. These tokens can be staked in farming contracts with dynamic reward logic tied to time and range activity.

Benefits:

  • Incentive Alignment: Projects can reward liquidity depth and stability.

  • Community Engagement: Run seasonal or token-launch campaigns.

  • LP Rewards: Users earn passive income beyond swap fees.

NFT Fee Discount

Turn NFTs into utility assets with tangible in-DEX benefits.

How it works: This plugin checks a user’s NFT ownership and applies a custom swap fee. It uses Brevis ZK coprocessors to verify NFT conditions in a trustless, private, and gas-efficient way.

Benefits:

  • Increased Liquidity: Lower trading fees attract more users and deepen liquidity.

  • NFT Utility: Adds value to NFTs by linking them to real DeFi perks.

  • User Engagement: Encourages NFT holders to stay active in the DEX.

  • Marketing Leverage: A unique incentive for partnerships and community building.

LVR Plugin

Programmable MEV and intent-based trading with fairness by design.

How it works: Built by FastLane, Atlas mitigates Loss-Versus-Rebalancing (LVR) and redistributes MEV via programmable, permissionless infrastructure. It also supports intent-based execution, enabling smarter, more complex trades.

Benefits:

  • Fairer Trading: Reduces LVR impact for traders and LPs.

  • Advanced Strategies: Enables intent-based trades and custom execution logic.

  • DEX Performance: Improves execution quality and trust in the platform.

  • Developer-Friendly: EVM-compatible and highly customizable.

Managed Swap Fee

Customize fees on a per-swap basis for any use case.

How it works: Authorized services (e.g., KYC systems, AI agents, or apps) can initiate swaps with custom fees that override pool defaults. All changes are cryptographically verified and limited to the given swap.

Benefits:

  • Custom Business Logic: Power advanced fee logic without affecting all users.

  • Gas-Efficient: Minimal overhead per swap.

  • DEX Control: Fine-tune incentives per user or use case.

Position Limit Orders

Enable fully on-chain limit orders using AMM positions.

How it works: Users create liquidity positions outside the current price range, effectively setting buy-low or sell-high limit orders. Orders execute automatically when price enters the range.

Benefits:

  • Precision Trading: Allows users to set strategic entry/exit points.

  • LP Utility: Liquidity becomes a tool for order execution.

  • On-Chain Transparency: No off-chain matching or middlemen.

Safety Switch

Built-in emergency response system for DEX protection.

How it works: Pools can be paused manually or automatically based on real-time threat signals from security platforms like Hexagate. "Guard" role can trigger a pause, while "Admin" controls full recovery.

Benefits:

  • Real-Time Threat Response: Automated or manual action during attacks.

  • Security Integration: Links with on-chain monitoring tools.

  • DEX Resilience: Prevents exploit damage while keeping control in admin hands.

Sliding Fee

Dynamic, directional fees to balance arbitrage and trader fairness.

How it works: Fees adjust based on trade direction, frequency, and behavior—increasing profits from arbitrage while remaining user-friendly. The plugin shifts fee boundaries according to external market movement.

Benefits:

  • LP Earnings Boost: Up to 15% more revenue from arbitrageurs.

  • Trader-Friendly: Keeps swaps affordable for regular users.

  • Arb Resistance: Disincentivizes high-frequency frontrunning.

Whitelist Fee Discount

Reward trusted traders with personalized fee tiers.

How it works: Set custom static fees for specific addresses on specific pools. Target high-volume traders or partners and offer them reduced costs to incentivize large, repeat trades.

Benefits:

  • DEX Volume Growth: Incentivize big swappers and market-makers.

  • LP Benefit: Volume increase can outweigh fee discounts.

  • Trader Loyalty: Keeps key users engaged and incentivized.

Why Plugins Matter

With modularity, DEX builders no longer need to fork or rebuild to experiment, scale, or pivot. Instead, they can plug in features as needed and disconnect them to optimize gas or upgrade logic later.

This approach transforms a DEX from a static product into an adaptive, evolving platform.

Ready to extend your protocol? Explore available plugins or build your own.

PreviousPerks for UsersNextPlugin Marketplace

Last updated 16 hours ago