Amplify
Launch AppGithub
  • Introduction
    • Amplify Overview
    • Concepts
      • Networks
      • DApps
      • Network Investors
      • LPs & Traders
    • Getting Started
      • Networks
      • DApps
      • Investors
  • Developers
    • Smart Contracts
      • VoteEscrowDistribution
      • Voter
      • VoteEscrow
      • Factories
        • Factory
        • IncentivesManagerFactory
        • VoterFactories
        • VoteEscrowFactory
        • GaugeFactory
          • BaseGaugeFactory
        • BribeFactory
          • BaseBribeFactory
      • Bribe
      • Gauge
      • IncentivesManager
    • Deployments
      • Arbitrum Sepolia
  • Resources
    • Brand Assets
    • Bug Bounty
    • Security & Audits
    • Whitelisting
  • Terms of Service
    • Privacy Policy
    • Terms of Use
Powered by GitBook
On this page
  • Description:
  • createIncentivesManager
  1. Developers
  2. Smart Contracts
  3. Factories

IncentivesManagerFactory

Description:

A simple factory contract responsible for deploying new instances of the IncentivesManager contract.


createIncentivesManager

function createIncentivesManager(
    address _voter,
    address _ve,
    address _ve_dist,
    address admin
) external returns (address)

Description:

Deploys a new IncentivesManager contract instance with the specified parameters for the Voter, VoteEscrow, VoteEscrowDistribution contracts, and the designated admin address. Stores the address of the newly deployed manager in lastIncentivesManager. This function can be called by any address.

Input Parameters:

Name
Type
Description

_voter

address

Address of the Voter contract for the new manager.

_ve

address

Address of the VoteEscrow contract for the new manager.

_ve_dist

address

Address of the VoteEscrowDistribution for the new manager.

admin

address

Address to be set as the admin for the new manager.

Return Value:

Type
Description

address

The address of the newly deployed IncentivesManager contract.

PreviousFactoryNextVoterFactories

Last updated 2 months ago