Copy of Task Reward and Gas Compensation
All payment is carried out by the Agent contract. Herein we specify the modes of interaction with it for such purposes.
Flashbots realisation
Reward amount cases and computation
_calculateCompensation arguments and logic
function _calculateCompensation(
//boolean identifier of the job being executed successfully
bool ok_,
//job binary data
uint256 job_,
//executor ID
uint256 keeperId_,
//gas price to use in computation of the dynamic reward portion; obtained by taking the minimum of the Job-specified maximal admissible gas price and the current block base gas price.
//Do bear in mind that in cases of the block base gas price exceeding the one specified as maximal by the Job owner the job execution will revert unless the keeper passes in his execution config byte the appropriate flag, assenting to potentially receiving deficient recompense compared to what he may expect. If no such keeper is found in the entire Flashbots pool, the task is not executed in that round. Do refer to the Flags page for further information.
uint256 gasPrice_,
//gas used for execution
uint256 gasUsed_
) internal view virtual returns (uint256)Compensation computation usage cases
Reward payment options
Job/Job owner payment code snippet
Accrue/send payment code snippet
RanDAO realisation
Reward amount cases and computation
_calculateCompensation arguments and logic
Compensation computation usage cases
Reward payment options
Last updated
Was this helpful?