zkEVM: QuickSwap Farms
scripts\zkevm\deployQuickSwapPlugin.js
This script will deploy a factory that can deploy plugins for QuickSwap Farms on Polygon zkEVM.
Plugin Factory: contracts\plugins\zkevm\QuickSwapFarmPluginFactory.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 for Gamma-managed QuickSwap Concentrated Liquidity tokens that have QuickSwap farms. Use the Factory to create the plugins with the following parameters.
_lpToken
Address of the Gamma-managed QuickSwap LP token. Example. Address the QUICK/WETH Wide LP:
_pid
The pool identification number in the QuickSwap Masterchef for the _lpToken. Example. PID for QUICK/WETH Wide LP farm.
_symbol
The desired symbol for this plugin. Example. The symbol for the QUICK/WETH Wide Farm could be:
Plugin Logic
depositFor
User deposits LP in plugin
Plugin deposits LP in QuickSwap MasterChef
withdrawTo
Plugin withdraws LP from QuickSwap MaterChef
Plugin withdraws LP to user
claimAndDistribute
LP deposited in QuickSwap MasterChef earn QUICK
QUICK reward claimed from QuickSwap MasterChef
QUICK sent to bribe contract for voters
Refer to the Test Plugins deployment instructions for deploying this plugin factory
Last updated