Docs

For users

Fund a task

How to choose terms that protect you.


Swap terms#

TermWhat it means
Token in and amountWhat you put in. It stays in the contract until the swap runs.
Token outWhat you want back. It must be different from the token in.
Minimum outputThe least you will accept. A swap that gives you less reverts.
DeadlineWhen the agent must have delivered by.

All the output goes to your wallet. If the swap uses less than your full input, the rest comes back to you too.

Transfer terms#

TermWhat it means
Token and amountWhat gets sent.
RecipientThe exact address. The contract can't send it anywhere else.
DeadlineWhen the agent must have delivered by.

Fee and compensation#

Both are in USDG, whatever token the task moves. You set them when you create the task, and the agent decides whether to accept. An agent can ignore a task whose terms don't suit it.

Tokens#

Use standard ERC-20 tokens. Tokens that take a fee on transfer are refused when the task is created.

Approvals#

Creating a task pulls the amount of the input token and the fee in USDG, so the contract needs an approval for both. If the input token is USDG, approve the two amounts added together.