Job

Git Source

Inherits: Authorizable, Modifiable, IJob

This abstract contract is inherited by all jobs to add a reward modifier

State Variables

rewardAmount

Amount of tokens to reward per job transaction [wad]

uint256 public rewardAmount;

stabilityFeeTreasury

Address of the StabilityFeeTreasury contract

IStabilityFeeTreasury public stabilityFeeTreasury;

Functions

constructor

constructor(address _stabilityFeeTreasury, uint256 _rewardAmount);

Parameters

NameTypeDescription
_stabilityFeeTreasuryaddressAddress of the StabilityFeeTreasury contract
_rewardAmountuint256Amount of tokens to reward per job transaction [wad]

_modifyParameters

Internal function to be overriden with custom logic to modify parameters

This function is set to revert if not overriden

function _modifyParameters(bytes32 _param, bytes memory _data) internal virtual override;

_validateParameters

Internal function to be overriden with custom logic to validate parameters

function _validateParameters() internal view virtual override;

reward

Modifier to reward the caller for calling the function

modifier reward();