GaugeFactory
Inherits: IGaugeFactory
Creates Gauge and ExtraReward
Uses clone to create new contracts
State Variables
deployedGauge
address public immutable deployedGauge;
Functions
constructor
constructor(address _deployedGauge);
createGauge
Create a new reward Gauge clone
function createGauge(address _vault, address _owner) external override returns (address);
Parameters
Name | Type | Description |
---|---|---|
_vault | address | the vault address. |
_owner | address | owner |
Returns
Name | Type | Description |
---|---|---|
<none> | address | gauge address |
_clone
function _clone(address _source) internal returns (address result);
Events
GaugeCreated
event GaugeCreated(address indexed gauge);
ExtraRewardCreated
event ExtraRewardCreated(address indexed extraReward);