zkEVM: QuickSwap Perps
This script will deploy a plugin for QuickSwap perps (QLP) on Polygon zkEVM.
Plugin Factory: contracts/plugins/zkevm/QLPPlugin.soll
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 is a plugin for QuickSwap's perp liquidity: QLP. The underlying token, sQLP, is deposited in the plugin and it is held there. sQLP held in the plugin earns WETH, USDC, and QUICK tokens, which are claimed and sent to its bribe contract.
The deployment script can be run as is to deploy this plugin. The plugin is only meant to be deployed once so it does not have a factory.
Plugin Logic
depositFor
User deposits sQLP in plugin
Plugin holds sQLP
withdrawTo
Plugin holds sQLP
Plugin withdraws sQLP to user
claimAndDistribute
sQLP held in plugin earns WETH, USDC, and QUICK tokens
WETH, USDC, and QUICK rewards are claimed from QuickSwap Reward Router
WETH, USDC, and QUICK rewards are sent to bribe contract for voters
Refer to the Test Plugins deployment instructions for deploying this plugin
Last updated