Algebra Integral Overview
  • Intro
  • Audits
  • Integration of Algebra Integral protocol
    • 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
  • Core logic
    • Pool overview
    • Swap calculation
    • Liquidity and positions
    • Ticks
      • Ticks search tree
    • Reserves
    • Flash
    • Plugins
    • AlgebraFactory and roles
  • Plugins
    • Intro
  • Changes after V1
Powered by GitBook
On this page
  • Overview
  • Template repository
  • Installation
  1. Plugins

Intro

PreviousAlgebraFactory and rolesNextChanges after V1

Last updated 1 year ago

Overview

Plugins for Algebra Integral are smart contracts that can expand or limit the functionality of liquidity pools. The plugin can be connected to a liquidity pool, then the pool will be able to call the corresponding plugin methods before and after the main actions in the pool:

  • swap

  • mint

  • burn

  • flash

A more detailed general description of plugins can be found in the section:

Template repository

To simplify the creation of new plugins, you can use a special template:

Installation

Clone repository:

git clone https://github.com/cryptoalgebra/algebra-plugin-template --recursive
cd algebra-plugin-template

Install dependencies:

npm i

Now you can use the template to create new plugins.

Core logic - plugins
algebra-plugin-template