EES
  • Ethereum Execution Service
  • Concepts
    • Jobs and registry
    • Executors and coordination
    • Applications
    • Execution modules
    • Fee modules
    • Execution fees
    • Sponsored jobs
  • Coordination
    • Staking
    • Designation
    • Slashing
  • Execution modules
    • RegularTimeInterval
  • Fee modules
    • LinearAuction
    • PeggedLinearAuction
  • Deployments
  • Guides
    • Create an application
    • Sponsor jobs
    • Build an executor bot
  • EES DAO
  • SDK
    • Types
    • Query jobs
    • Execute batch
    • Create job
    • Delete job
    • Sponsor job
    • Revoke sponsorship
    • Listen for created jobs
  • EES Subgraph
  • Technical reference
    • API
      • Core
        • JobRegistry
        • Coordinator
      • Periphery
        • Querier
Powered by GitBook
On this page
  1. Fee modules

LinearAuction

PreviousFee modulesNextPeggedLinearAuction

Last updated 9 months ago

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:

address executionFeeToken;
uint256 minExecutionFee;
uint256 maxExecutionFee;

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:

fee(t)=(maxFee −minFee)executionWindow−1⋅(t−executionTime)+minFeefee(t) = \frac{(maxFee  - minFee) }{executionWindow - 1} \cdot (t - executionTime) + minFeefee(t)=executionWindow−1(maxFee −minFee)​⋅(t−executionTime)+minFee

Here fee(t)fee(t)fee(t) is the execution fee and ttt is the UNIX time in seconds of the execution (measured as block.timestamp in the contract). This is not to be confused with executionTimeexecutionTimeexecutionTime which is the time from which the job can be executed.

Abstract graph of the fee function.