For users
Fund a task
How to choose terms that protect you.
Swap terms#
| Term | What it means |
|---|---|
| Token in and amount | What you put in. It stays in the contract until the swap runs. |
| Token out | What you want back. It must be different from the token in. |
| Minimum output | The least you will accept. A swap that gives you less reverts. |
| Deadline | When 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#
| Term | What it means |
|---|---|
| Token and amount | What gets sent. |
| Recipient | The exact address. The contract can't send it anywhere else. |
| Deadline | When 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.