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

deployRewarder

Function to deploy new rewarder.

function deployRewarder(address _rwdToken) external returns (address rewarder);

Parameters

Returns

updateRewarderImplementation

Update rewarder implementation's address

function updateRewarderImplementation(address _newRewarderImplementation) external onlyOwner;

Parameters

updateOracle

Function to update the oracle's address.

function updateOracle(address _newOracle) public onlyOwner;

Parameters

_validateNonZeroAddr

Validate address.

function _validateNonZeroAddr(address _addr) private pure;

Parameters