IKeep3rJob
Inherits: IPausable
Functions
keep3r
The address of the Keep3r contract
function keep3r() external view returns (IKeep3r _keep3r);
Returns
Name | Type | Description |
---|---|---|
_keep3r | IKeep3r | The address of the token |
requiredBond
The address of the keeper bond token
function requiredBond() external view returns (IERC20 _requiredBond);
Returns
Name | Type | Description |
---|---|---|
_requiredBond | IERC20 | The address of the token |
requiredMinBond
The minimum amount of bonded token required to bond by the keeper
function requiredMinBond() external view returns (uint256 _requiredMinBond);
Returns
Name | Type | Description |
---|---|---|
_requiredMinBond | uint256 | The required min amount bond |
requiredEarnings
The required earnings of the keeper
function requiredEarnings() external view returns (uint256 _requiredEarnings);
Returns
Name | Type | Description |
---|---|---|
_requiredEarnings | uint256 | The required earnings |
requiredAge
The age of the keeper in the Keep3r network
function requiredAge() external view returns (uint256 _requiredAge);
Returns
Name | Type | Description |
---|---|---|
_requiredAge | uint256 | The age of the keeper, in seconds |
setKeep3r
Sets the address of the keeper
function setKeep3r(IKeep3r _keep3r) external;
Parameters
Name | Type | Description |
---|---|---|
_keep3r | IKeep3r | The address of the keeper to be set |
setKeep3rRequirements
Sets the keeper requirements
function setKeep3rRequirements(IERC20 _bond, uint256 _minBond, uint256 _earnings, uint256 _age) external;
Parameters
Name | Type | Description |
---|---|---|
_bond | IERC20 | The required token to bond by keepers |
_minBond | uint256 | The minimum amount bound |
_earnings | uint256 | The earnings of the keeper |
_age | uint256 | The age of the keeper in the Keep3r network |
Events
Keep3rSet
Emitted a new keeper is set
event Keep3rSet(IKeep3r _keep3r);
Keep3rRequirementsSet
Emitted when setting new keeper requirements
event Keep3rRequirementsSet(IERC20 _bond, uint256 _minBond, uint256 _earnings, uint256 _age);
Errors
InvalidKeeper
Thrown when the caller is not a valid keeper in the Keep3r network
error InvalidKeeper();