IncentivesManagerFactory
Description:
A simple factory contract responsible for deploying new instances of the IncentivesManager
contract.
createIncentivesManager
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:
_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:
address
The address of the newly deployed IncentivesManager contract.
Last updated