GaugeFactory

Git Source

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

NameTypeDescription
_vaultaddressthe vault address.
_owneraddressowner

Returns

NameTypeDescription
<none>addressgauge address

_clone

function _clone(address _source) internal returns (address result);

Events

GaugeCreated

event GaugeCreated(address indexed gauge);

ExtraRewardCreated

event ExtraRewardCreated(address indexed extraReward);