IKeep3rBondedRelay
Inherits: IKeep3rRelay
Functions
automationVaultRequirements
Get the automation vault bonded requirements
function automationVaultRequirements(IAutomationVault _automationVault)
external
view
returns (address _bond, uint256 _minBond, uint256 _earned, uint256 _age);
Parameters
Name | Type | Description |
---|---|---|
_automationVault | IAutomationVault | The automation vault |
Returns
Name | Type | Description |
---|---|---|
_bond | address | The bond token being evaluated |
_minBond | uint256 | The minimum amount of bonded tokens |
_earned | uint256 | The minimum funds earned in the keepers lifetime |
_age | uint256 | The minimum keeper age required |
setAutomationVaultRequirements
Set the automation vault requirements when bonded job is required
Only the owner of the automation vault can set the requirements
function setAutomationVaultRequirements(
IAutomationVault _automationVault,
IKeep3rBondedRelay.Requirements memory _requirements
) external;
Parameters
Name | Type | Description |
---|---|---|
_automationVault | IAutomationVault | The automation vault that will be executed |
_requirements | IKeep3rBondedRelay.Requirements | The requirements needed when bonded job is required |
Events
AutomationVaultRequirementsSetted
Emitted when the automation vault requirements are setted
event AutomationVaultRequirementsSetted(
address indexed _automationVault, address _bond, uint256 _minBond, uint256 _earned, uint256 _age
);
Parameters
Name | Type | Description |
---|---|---|
_automationVault | address | The address of the automation vault |
_bond | address | The bond token being evaluated |
_minBond | uint256 | The minimum amount of bonded tokens |
_earned | uint256 | The minimum funds earned in the keepers lifetime |
_age | uint256 | The minimum keeper age required |
Errors
Keep3rBondedRelay_NotVaultOwner
Thrown when the caller is not the automation vault owner
error Keep3rBondedRelay_NotVaultOwner();
Keep3rBondedRelay_NotAutomationVaultRequirement
Thrown when the automation vault requirements are not setted
error Keep3rBondedRelay_NotAutomationVaultRequirement();
Keep3rBondedRelay_NotBondedKeeper
Thrown when the keeper doesn't meet the requirements set by the automation vault
error Keep3rBondedRelay_NotBondedKeeper();
Structs
Requirements
The requirements needed when bonded job is required
struct Requirements {
address bond;
uint256 minBond;
uint256 earned;
uint256 age;
}
Properties
Name | Type | Description |
---|---|---|
bond | address | The bond token being evaluated |
minBond | uint256 | The minimum amount of bonded tokens |
earned | uint256 | The minimum funds earned in the keepers lifetime |
age | uint256 | The minimum keeper age required |