Add Incentives

Use the add_incentives function from the router module.

 public entry fun add_incentives(
        lp: &signer,
        pools: vector<address>,
        assets: vector<address>,
        amounts: vector<u64>,
    ) {
        ...
    }

Function Parameters

  • lp: The transaction signer (liquidity provider).

  • pools: An array of pools to incentivize.

  • assets: An array of assets to incentivize.

  • amounts: An array of token amounts to be used as incentives.

Last updated