LinearAuction
Last updated
Last updated
The LinearAuction
fee module creates a reverse dutch auction upon time of execution of a job. The input bytes to the onCreateJob
function should follow the structure:
The executionFeeToken
field is the token which execution fee will be paid in. During the auction period, the execution fee will grow linearly every second from minExecutionFee
to maxExecutionFee
.
More precisely, the execution fee can be calculated as follows, where t is the number of seconds the job is within the execution window:
Here is the execution fee and is the UNIX time in seconds of the execution (measured as block.timestamp
in the contract). This is not to be confused with which is the time from which the job can be executed.