Docs

The warranty

Task lifecycle

Every state a task can be in.


Statuses#

StatusValueMeaningWhat can happen next
None0No such task
Open1Funded by the user, waiting for the agentAccepted or cancelled
Active2Accepted, compensation lockedDelivered or failed
Delivered3Finished on timeNothing, this is final
Failed4Deadline missed and settledNothing, this is final
Cancelled5Cancelled by the user before acceptanceNothing, this is final

Where the money goes#

OutcomeUser's fundsFeeCompensation
Delivered swapSwapped. All output and any unused input go to the userTo the operatorUnlocks, stays in the bond
Delivered transferSent to the recipientTo the operatorUnlocks, stays in the bond
FailedBack to the userBack to the userFrom the bond to the user
CancelledBack to the userBack to the userWas never locked

What the record counts#

Delivered adds one to the delivered count. Failed adds one to the failed count and adds the compensation to the total paid. Cancelled changes nothing.