IOpenRelay
Functions
GAS_BONUS
Returns the gas bonus
function GAS_BONUS() external view returns (uint256 _gasBonus);
Returns
Name | Type | Description |
---|---|---|
_gasBonus | uint256 | The value of the gas bonus |
GAS_MULTIPLIER
Returns the gas multiplier
function GAS_MULTIPLIER() external view returns (uint256 _gasMultiplier);
Returns
Name | Type | Description |
---|---|---|
_gasMultiplier | uint256 | The value of the gas multiplier |
BASE
Returns the base used for the payment calculation
function BASE() external view returns (uint32 _base);
Returns
Name | Type | Description |
---|---|---|
_base | uint32 | The value of the base |
exec
Execute an automation vault which will execute the jobs and will manage the payment to the fee data receivers
The payment will be calculated on the basis of several variables like the gas spent, the base fee, the gas bonus and the gas multiplier
function exec(
IAutomationVault _automationVault,
IAutomationVault.ExecData[] calldata _execData,
address _feeRecipient
) external;
Parameters
Name | Type | Description |
---|---|---|
_automationVault | IAutomationVault | The automation vault that will be executed |
_execData | IAutomationVault.ExecData[] | The array of exec data |
_feeRecipient | address | The address of the fee recipient |
Events
AutomationVaultExecuted
Emitted when an automation vault is executed
event AutomationVaultExecuted(
address indexed _automationVault,
address indexed _relayCaller,
IAutomationVault.ExecData[] _execData,
IAutomationVault.FeeData[] _feeData
);
Parameters
Name | Type | Description |
---|---|---|
_automationVault | address | The address of the automation vault |
_relayCaller | address | The address of the relay caller |
_execData | IAutomationVault.ExecData[] | The array of exec data |
_feeData | IAutomationVault.FeeData[] | The array of fee data |
Errors
OpenRelay_NoExecData
Thrown when the exec data is empty
error OpenRelay_NoExecData();