Base: Aerodrome Pairs

scripts\base\deployAeroPairPlugin.js

This script will deploy a factory that can deploy plugins for any Aerodrome Pairs on Base. This plugin sets up a dynamic of shared liquidity with Aerodrome, deepening liquidity for both parties and benefitting from the established utilization of Aerdrome LPs. This is only possible because Aerdrome LPs earn swap fees for the holder of the LP.

Plugin Factory: contracts/plugins/base/AeroPairPluginFactory.sol

IMPORTANT NOTICE

These plugins are not audited. It is recommended to get them audited if you plan to use them in production.

Plugin Description

This plugin is made Aerodrome Pair LPs. Use the Factory to create the plugins with the following parameters.

_lpToken

Address of the Aerodrome LP token. Example. Address the AERO/WETH LP:

const LP_ADDRESS = '0x7f670f78B17dEC44d5Ef68a48740b6f8849cc2e6';    // LP Address

_symbol

The desired symbol for this plugin. Example. The symbol for the AERO/WETH LP could be:

const LP_SYMBOL = 'vLP-AERO/WETH';   // Desired symbol for LP plugin

Plugin Logic

depositFor

  • User deposits LP in plugin

  • Plugin holds LP

withdrawTo

  • Plugin holds LP

  • Plugin withdraws LP to user

claimAndDistribute

  • LP held in plugin earns swap fees in its underlying tokens

  • Swap fees claimed from LP Fee contract

  • Swap fees sent to bribe contract for voters


Refer to the Test Plugins deployment instructions for deploying this plugin factory

Last updated