πŸ€‘Integrating Dual Rewards

1. Overview

There are four main steps a project should take in order to integrate dual token rewards with the Generator:

  1. Ensure your token already has an Astroport pool

  2. Create a liquidity mining mechanism to distribute your governance token to LPs in the Astroport pool

  3. Deploy a generator proxy contract specific to your liquidity mining mechanism and Astroport pool

  4. Reach out to the Astrochads via Discord, Twitter or any other channel

We will go into detail for each step below.

2. Walkthrough

Ensure your token already has an Astroport pool

If a suitable pool doesn’t exist for the relevant asset pair then one will need to be created. Pool creation is permissionless. See here for more relevant documentation.

Alternatively, you can reach out on the Astroport Discord server and the community can help you get started.

Create a liquidity mining mechanism

Astroport provides an example generator proxy contract compatible with the Mirror staking contract. For new projects that want their liquidity mining mechanism to be integrated with Astroport, the simplest path is basing your liquidity mining contracts on the Mirror design.

Alternatively, Anchor’s liquidity mining mechanism is simpler and should not require big changes to the example generator proxy contract.

Generator integration is still possible if you have a different liquidity mining mechanism but it will require a custom generator proxy contract.

Deploy a dual rewards proxy

The generator proxy contract acts as an adaptor between the ASTRO Generator contract and your own liquidity mining mechanism. You can create and deploy this yourself. Astroport provides a proxy template which you can customise.

Astroport also provides a full example proxy contract designed for the Mirror liquidity mining mechanism.

If you plan to deploy your own dual rewards proxy implementation, please make sure you read and understand Mirror’s contracts, and feel free to contact Astroport contributors if you have any questions.

Reach out to the Astrochads

The final step is for the new proxy contract to be registered with the generator. Eventually this will be done via a governance vote, but for now a multisig transaction is required.

Reach out to an Astroport contributor on Twitter, Discord or any other channel and they can add you to the appropriate group to discuss about whitelisting your proxy contract.

Last updated

Was this helpful?