Covered calls and refunds
The rules every covered call follows, from the payment to the release or the refund. All of it is enforced by the escrow contract or recorded by the proxy.
Life of a call
| Status | Meaning | Next |
|---|---|---|
| covered | Paid, the seller was paid, the price is locked in the seller's deposit | released after the window, refunded, or disputed |
| refunded | 100% of the price went back to the buyer (automatic refund or 7-day default) | final |
| disputed | The buyer opened a dispute inside the window; the lock holds | resolved, or refunded after 7 days |
| resolved | A decision returned 0%, 50% or 100% of the price to the buyer | final |
| released | The window closed without a dispute; the lock is free again | final |
Backing
The escrow checks the seller's free deposit before it accepts a payment: freeBond(seller) ≥ price. If the deposit is short, the proxy answers 503 and nothing is charged. A refund can never exceed the price of the call it refunds, and the locked amount can never exceed the deposit; both are tested as invariants.
Automatic refunds
Four failures can be measured without reading the answer, so they are refunded at once, in the same request, by the judge key calling autoRefund(callId, code):
| Code | Failure |
|---|---|
| 1 | The upstream answered HTTP 500 or above |
| 2 | No complete answer within the promised latency (60 s at most) |
| 3 | Empty response body |
| 4 | The response is not JSON, or does not match the JSON Schema the seller declared |
| 5 | The upstream could not be reached |
The response then carries X-Arbiter-Refund: sent and X-Arbiter-Refund-Tx. HTTP 4xx answers are not refunded automatically: they usually mean the request was wrong, and can be disputed.
Disputes
Inside the window, the buyer can dispute any call with one line explaining what was wrong. Two ways, same result:
- By API, without gas:
POST /api/v1/calls/{id}/disputewith the reason, signed (EIP-191) by the wallet that paid. The judge key opens it on-chain. - On-chain:
dispute(callId, reasonHash)from the paying wallet. This works even if this site is down.
How a dispute is decided is described in How refunds are decided. A buyer can open at most 10 disputes per service per day.
The 7-day default
A dispute that is not decided within 7 days is refunded in full by anyone calling refundUnresolved(callId). A disputed call can only end with a decision or with a full refund.
Fees
One fee per covered call, taken from the payment: 1% of the price with a floor of 0.005 USDG.
| Part | Goes to |
|---|---|
| 0.5% of the price | $ARBITER stakers, in USDG |
| 0.5% of the price | The burn vault, which buys $ARBITER and burns it |
| The floor above 1% | The relayer wallet, which pays the gas of every covered call |
Records and privacy
For each call the proxy records the status, the latency and a hash of the response, and keeps the request and the response encrypted until the window closes plus 7 days, so a dispute can be read. Then the bodies are deleted; the hash and the on-chain record stay.