IKeep3rJob

Git Source

Inherits: IPausable

Functions

keep3r

The address of the Keep3r contract

function keep3r() external view returns (IKeep3r _keep3r);

Returns

NameTypeDescription
_keep3rIKeep3rThe address of the token

requiredBond

The address of the keeper bond token

function requiredBond() external view returns (IERC20 _requiredBond);

Returns

NameTypeDescription
_requiredBondIERC20The 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

NameTypeDescription
_requiredMinBonduint256The required min amount bond

requiredEarnings

The required earnings of the keeper

function requiredEarnings() external view returns (uint256 _requiredEarnings);

Returns

NameTypeDescription
_requiredEarningsuint256The required earnings

requiredAge

The age of the keeper in the Keep3r network

function requiredAge() external view returns (uint256 _requiredAge);

Returns

NameTypeDescription
_requiredAgeuint256The age of the keeper, in seconds

setKeep3r

Sets the address of the keeper

function setKeep3r(IKeep3r _keep3r) external;

Parameters

NameTypeDescription
_keep3rIKeep3rThe address of the keeper to be set

setKeep3rRequirements

Sets the keeper requirements

function setKeep3rRequirements(IERC20 _bond, uint256 _minBond, uint256 _earnings, uint256 _age) external;

Parameters

NameTypeDescription
_bondIERC20The required token to bond by keepers
_minBonduint256The minimum amount bound
_earningsuint256The earnings of the keeper
_ageuint256The 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();