RewarderFactory

Git Source

Inherits: IRewarderFactory, Ownable

Author: Sperax Foundation.

This contract deploys new rewarders and keeps track of them.

State Variables

oracle

address public oracle;

rewarderImplementation

address public rewarderImplementation;

Functions

constructor

Constructor.

constructor(address _oracle) Ownable(msg.sender);

Parameters

Name
Type
Description

_oracle

address

Address of the master price oracle of USDs.

deployRewarder

Function to deploy new rewarder.

Parameters

Name
Type
Description

_rwdToken

address

Address of the reward token for which the rewarder is to be deployed.

Returns

Name
Type
Description

rewarder

address

Rewarder's address.

updateRewarderImplementation

Update rewarder implementation's address

Parameters

Name
Type
Description

_newRewarderImplementation

address

New Rewarder Implementation

updateOracle

Function to update the oracle's address.

Parameters

Name
Type
Description

_newOracle

address

Address of the new oracle.

_validateNonZeroAddr

Validate address.

Parameters

Name
Type
Description

_addr

address

Address to be validated.