RewarderFactory
Inherits: IRewarderFactory, Ownable
Author: Sperax Foundation.
This contract deploys new rewarders and keeps track of them.
State Variables
oracle
rewarderImplementation
Functions
constructor
Constructor.
Parameters
Name | Type | Description |
---|---|---|
|
| Address of the master price oracle of USDs. |
deployRewarder
Function to deploy new rewarder.
Parameters
Name | Type | Description |
---|---|---|
|
| Address of the reward token for which the rewarder is to be deployed. |
Returns
Name | Type | Description |
---|---|---|
|
| Rewarder's address. |
updateRewarderImplementation
Update rewarder implementation's address
Parameters
Name | Type | Description |
---|---|---|
|
| New Rewarder Implementation |
updateOracle
Function to update the oracle's address.
Parameters
Name | Type | Description |
---|---|---|
|
| Address of the new oracle. |
_validateNonZeroAddr
Validate address.
Parameters
Name | Type | Description |
---|---|---|
|
| Address to be validated. |