Execution fees

Fees are necessary to incentivise executors to execute jobs. We can largely view the fee as doing three things:

  1. Compensating the executor paying gas fee to perform the on-chain transaction.

  2. Incentivizing the executor beyond gas fee compensation, making it profitable to execute a job. Being an executor typically requires some kind of hardware and time invested and it should be worth the trouble economically.

  3. Funding protocol development. Part of the fee goes to the protocol treasury, funding building of tools, integrations and protocol R&D.

The total fee is calculated by the fee module of the job and can be paid in any ERC-20 token. Getting the fee right is important as the job might not get executed if it is too low and the user risks overpaying if it is set too high. Fee modules contain mechanisms assisting in this.

Note: The execution fee is always paid by the sponsor. If no sponsor was set duing creation of a job, then the creator (msg.sender) will be set as sponsor.

Last updated