Token Payments
Jobs as well can top-up their credits with ERC20 tokens, and then use them to reward keepers.
Add Tokens To Job
Anyone can add token credits to a job by approving a transfer of an ERC20 token and then calling:
This function will give the job token credits in a 1:1 relation to the transferred ERC20 tokens. Job token credit balance can be checked calling:
The only way of adding KP3R credits to a job is by Credit Mining. Trying to add KP3R tokens by using addTokenCreditsToJob
will revert.
Withdraw Tokens From Job
A job owner can withdraw tokens credits from a job by calling:
This function can revert if:
Job is disputed
Token credits were added to the job at most 1 minute before trying to withdraw
Pay Keepers With Token Credits
In order to reward keepers for their work with token credits jobs can call:
Last updated